You can use the views_{$this->screen->id}
filter in WP_List_Table::views()
, where screen ID in this case is edit-post
:
function wpse_177655_views( $views ) {
$custom = sprintf( '<a href="https://wordpress.stackexchange.com/questions/177655/%s"', esc_url( 'edit.php?post_type=post&custom=foobar' ) );
if ( ! empty( $_GET['custom'] ) && $_GET['custom'] == 'foobar' )
$custom .= ' class="current"';
$custom .= '>Custom</a>';
$views['custom'] = $custom;
return $views;
}
add_filter( 'views_edit-post', 'wpse_177655_views' );
Obviously this is more of an example than an exact solution. You’ll also need to hook onto pre_get_posts
to add the relevant meta query args.
Related Posts:
- How do I Enqueue styles/scripts on Certain /wp-admin Pages?
- adding custom stylesheet to wp-admin
- Disable dragging of meta boxes?
- Toggle admin metabox based upon chosen page template
- Unable to login and wp-login.php redirects to wp-admin%2F&reauth=1?
- How to remove the core embed blocks in WordPress 5.6?
- How to order by post meta name in wp admin?
- How set defaults on wpLink()
- Remove dashboard, use Pages tab as default
- My wordpress site gets redirected automatically to the old site any known solution for this?
- Use a different domain for SSL
- How to list ALL Pages in the dashboard?
- Is there un-wp_autop function?
- Adding a menu item in the admin bar
- how to force caching of wordpress admin
- “leftover” notifications left on ever admin screen?
- Excerpt textarea missing on post editing page in admin panel
- How to disable 3.3 Tooltips?
- wp login redirects to homepage
- Dashboard links not working
- jquery UI in wordpress admin
- Resize Admin Featured Image Thumbnail in CPT Edit Screen
- Displaying which Role the current user is assigned to
- Retrieve Path of admin.php
- Registering jQuery kills admin functions
- Adding HTML/Text to Top of Subscriber’s Profile Backend Page
- submit for review issue
- wp-admin does not redirect to dashboard
- Change WP-Login or WP-Admin
- Custom roles showing HTML entities in title form field
- How can I restrict a user to a specific item in the WordPress Admin? [closed]
- WordPress address URL keeps dropping the www
- How to show postmeta in custom columns for the posts screen?
- wp_nonce_url to users.php for deleting user not working
- How can I remove the user avatar from admin toolbar?
- How to stop – Database Update Required – from happening again?
- Moving wp-admin to a different to a subdomain
- using wp_sprintf at wordpress option page,
- Can’t login to Dashboard when changing site URL to HTTPS
- Limit access to wp_admin
- Not Found (404) error on admin page, CSS gone on blog
- MySQL CPU Usage Surge up When Multiple Post Editor Pages are open
- Remove All in One Pack from the admin bar
- The uploaded file exceeds!
- Admin table list API?
- How to change user admin_color with WP CLI?
- Having troubles connecting to WordPress login page using Mamp
- WP Admin/ WP Login Redirect to themselves
- Unable to log in to localhost wp-admin page on XAMPP server
- Remove or move admin submenus under a new menu
- Missing ‘Move to Trash’ option from bulk select box
- Where can I find admin-header.php file online?
- class-wp-hook.php on line 288
- Trying to get custom js files in my admin header
- Efficient way to check local WordPress php files and Database for malicious code? [duplicate]
- How to disable categories/most used in ‘add new post’?
- Why am I locked out of the system?
- Is it possible to create two different wp-admins for a wp website
- Am I able to change the name of /wp-admin/options-general.php?
- how to customize the default #adminmenu in wp-admin
- blocking the admin section (but still using admin-ajax.php)
- How to Restrict Access to all wp-admin pages for subscriber users
- WP Admin messed up
- wp-login not found – All usual solutions not working
- Why when I try to access to this old WordPress site it is opened the installation page?
- How do I change the hover (focus) color of admin bar from frontend?
- What do I need for testing a single script in admin
- Wp-Admin extremely slow!
- Run two wordpress on the same domain
- nothing comes up when i go to my website.com/wp-admin? Which files should I look for?
- Programmatically emulate viewing a post in wp-admin
- Do not load the site as soon as you enter the WordPress panel
- How to remove some author fields from the edit comment page in wp-admin?
- When i try to open Localhost/wordpress/wp-admin . An Error appears ” Registration Has been Disabled” . No login page is shown in the browser
- Line-height of text in wp-admin
- Slow WP loading due to persistent version check, how to disable?
- Can I manage the photos that are pulled from Instagram before they are uploaded?
- do_shortcode() within Admin Page
- How do I edit an add in wp_list_table and return to same page
- admin_post_nopriv_{$action} is secure?
- Form input values are empty after submit
- Adding custom classes to elements via the WYSIWYG
- How to log into WordPress via GET/POST
- Locked out of WordPress after changing to HTTPS – Google Cloud VM
- Why does wordpress and my site create a downloadable file instead of allowing me to login?
- How to Fix WordPress Not Saving Settings?
- wp.media – drag&drop overlay stuck
- How to display status messages in admin panel
- Admin Login Checks
- I cannot go to http://novathon.cloud.reply.eu/wp-admin – always redirected to /wp-login
- Search plugin form on “Add Plugin” page not working
- Managing advertising code snippets
- admin_url() do not retrieve the correct url in an subdirectory install
- Can’t toggle between Visual and Text or Screen Options
- Cannot Update wp DB – Get 500 Error
- plugin: ‘init’ hook, check if we’re not in admin
- Is there ever a legitimate reason for an outsider to access wp-admin
- Impossible User Registration
- PHP Fatal error: Uncaught Error: Cannot unset string offsets when trying to upload any file to media library
- Wp doesn’t save meta box data