Skip to content

Instantly share code, notes, and snippets.

Created December 17, 2012 07:39
Show Gist options
  • Save anonymous/4316469 to your computer and use it in GitHub Desktop.
Save anonymous/4316469 to your computer and use it in GitHub Desktop.

Revisions

  1. @invalid-email-address Anonymous created this gist Dec 17, 2012.
    9 changes: 9 additions & 0 deletions posts-list-add-export.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    <?php
    add_filter('views_edit-user-info',array(&$this,'add_export_link'));
    function add_export_link( $views ){
    $views[] = sprintf(
    '<a href="%s">エクスポート</a>',
    esc_attr(site_url('/wp-admin/export.php?download=true&content=posts'))
    );
    return $views;
    }