Skip to content

Instantly share code, notes, and snippets.

@wokamoto
Forked from anonymous/posts-list-add-export.php
Last active December 9, 2015 19:19
Show Gist options
  • Save wokamoto/4316473 to your computer and use it in GitHub Desktop.
Save wokamoto/4316473 to your computer and use it in GitHub Desktop.
<?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