WordPress at a glance
action is not described

restrict_manage_posts action-hook . WP 2.1.0

Fires before the Filter button on the Posts and Pages list tables.

The Filter button allows sorting by date and/or category on the Posts list table, and sorting by date on the Pages list table.

Usage

add_action( 'restrict_manage_posts', 'action_function_name_1859', 10, 2 );
function action_function_name_1859( $post_type, $which ){
	// action...
}
$post_type(string)
The post type slug.
$which(string)
The location of the extra table nav markup: 'top' or 'bottom' for WP_Posts_List_Table, 'bar' for WP_Media_List_Table.

Notes

  • Since 4.4.0 The $post_type parameter was added.
  • Since 4.6.0 The $which parameter was added.

Where the hook is called

WP_Posts_List_Table::extra_tablenav()
restrict_manage_posts
WP_Media_List_Table::extra_tablenav()
restrict_manage_posts
wp-admin/includes/class-wp-posts-list-table.php 478
do_action( 'restrict_manage_posts', $this->screen->post_type, $which );
wp-admin/includes/class-wp-media-list-table.php 181
do_action( 'restrict_manage_posts', $this->screen->post_type, $which );

Where the hook is used (in WP core)

Does not used.