Is there any way to add links on the top, as pictured below?

Post list views

1 Answer 1


They are filtered via the views_[screen-id] filter. The screen-id of the edit post page is edit-post, so you can modify the links like this:

add_action( 'views_edit-post', 'wpse17484_views_edit_post' );
function wpse17484_views_edit_post( $views )
    $views['wpse17484'] = '<a href="my-url">My action</a>';
    return $views;

You can see the code that generates the post views in WP_Posts_List_Table::get_views().


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.