How do I add to the list table a filter? olatechproJune 18, 20233 Views I am trying to find the hook for adding a filter to the list under “Posts [Add New]”: 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?
You can use views_edit-post hook to do so. It is a possible variation of views_{$this->screen->id} and resides in class-wp-list-table.php. add_filter('views_edit-post', 'my_post_views' ); function my_post_views( $views ){ $views['html_class_name_for_li'] = 'the html'; // ex: <a href="#">something (11)</a> return $views; }
You can use
views_edit-post
hook to do so. It is a possible variation ofviews_{$this->screen->id}
and resides in class-wp-list-table.php.