restrict_manage_posts

restrict_manage_posts

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

do_action('restrict_manage_posts') is found 2 times:

  • /wp-admin/includes/class-wp-media-list-table.php line 215
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
        $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 594
    590
    591
    592
    593
    594
    595
    596
    597
    598
    599
    600
    * @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: