restrict_manage_posts

restrict_manage_posts

Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.0.1

do_action('restrict_manage_posts') is found 2 times:

  • /wp-admin/includes/class-wp-media-list-table.php line 212
    				$this->months_dropdown( 'attachment' );
    			}
    
    			/** This action is documented in wp-admin/includes/class-wp-posts-list-table.php */
    			do_action( 'restrict_manage_posts', $this->screen->post_type, $which );
    
    			submit_button( __( 'Filter' ), '', 'filter_action', false, array( 'id' => 'post-query-submit' ) );
    
    			if ( $this->is_trash && $this->has_items()
    				&& current_user_can( 'edit_others_posts' )
    			) {
    
  • /wp-admin/includes/class-wp-posts-list-table.php line 578
    			 * @param string $which     The location of the extra table nav markup:
    			 *                          'top' or 'bottom' for WP_Posts_List_Table,
    			 *                          'bar' for WP_Media_List_Table.
    			 */
    			do_action( 'restrict_manage_posts', $this->screen->post_type, $which );
    
    			$output = ob_get_clean();
    
    			if ( ! empty( $output ) ) {
    				echo $output;
    				submit_button( __( 'Filter' ), '', 'filter_action', false, array( 'id' => 'post-query-submit' ) );
    

See this hook used in plugins: