Created
December 17, 2012 07:39
-
-
Save anonymous/4316469 to your computer and use it in GitHub Desktop.
[WordPress] 投稿一覧にエクスポートリンクを追加する
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment