Forked from anonymous/posts-list-add-export.php
Last active
December 9, 2015 19:19
-
-
Save wokamoto/4316473 to your computer and use it in GitHub Desktop.
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-post', 'add_export_link'); | |
function add_export_link( $views ){ | |
$views[] = sprintf( | |
'<a href="%s">%s</a>', | |
esc_attr(site_url('/wp-admin/export.php?download=true&content=posts')), | |
__('Export') | |
); | |
return $views; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment