On this page
do_action( 'restrict_manage_posts', string $post_type, string $which )
Fires before the Filter button on the Posts and Pages list tables.
Description
The Filter button allows sorting by date and/or category on the Posts list table, and sorting by date on the Pages list table.
Parameters
$post_typestring-
The post type slug.
$whichstring-
The location of the extra table nav markup:
'top'or'bottom'for WP_Posts_List_Table,'bar'for WP_Media_List_Table.
Source
File: wp-admin/includes/class-wp-posts-list-table.php. View all references
do_action( 'restrict_manage_posts', $this->screen->post_type, $which );
Related
Used By
| Used By | Description |
|---|---|
| WP_Media_List_Table::extra_tablenav() wp-admin/includes/class-wp-media-list-table.php | |
| WP_Posts_List_Table::extra_tablenav() wp-admin/includes/class-wp-posts-list-table.php |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/restrict_manage_posts