restrict_manage_posts

This action is documented in wp-admin/includes/class-wp-posts-list-table.php.

Description

do_action( 'restrict_manage_posts', (unknown) $this_screen_post_type ); 

Parameters (1)

0. $this_screen_post_type (unknown)
The this screen post type.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'restrict_manage_posts', $this_screen_post_type ); 
The following example is for adding a hook callback.
  1. // define the restrict_manage_posts callback 
  2. function action_restrict_manage_posts( $this_screen_post_type ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'restrict_manage_posts', 'action_restrict_manage_posts', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'restrict_manage_posts', 'action_restrict_manage_posts', 10, 1 ); 

Defined (2)

The action is defined in the following location(s).

/wp-admin/includes/class-wp-media-list-table.php  
  1. do_action( 'restrict_manage_posts', $this->screen->post_type ); 
/wp-admin/includes/class-wp-posts-list-table.php  
  1. do_action( 'restrict_manage_posts', $this->screen->post_type, $which );