Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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
You can’t perform that action at this time.