Add link on the top menu of the post table? olatechproFebruary 24, 20233 Views Is there any way to add links on the top, as pictured below? Post Views: 3 Related postsGet rid of this Strict Standards warningWooCommerce: get_current_screen not working with multi languageCan’t login on WordPressForce HTTPS using .htaccess – stuck in redirect loopWordPress: Ajax not working to insert, query and result dataHow Can I pass an image file to wp_handle_upload?
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(). Log in to Reply
They are filtered via the
views_[screen-id]
filter. Thescreen-id
of the edit post page isedit-post
, so you can modify the links like this:You can see the code that generates the post views in
WP_Posts_List_Table::get_views()
.