Action hook 'restrict_manage_posts'

in WP Core File wp-admin/includes/class-wp-media-list-table.php at line 215

View Source

restrict_manage_posts

Action Hook

Hook Information

File Location wp-admin/includes/class-wp-media-list-table.php View on GitHub
Hook Type Action
Line Number 215

Hook Parameters

Type Name Description
string $which No description available

Usage Examples

Basic Usage
<?php
// Hook into restrict_manage_posts
add_action('restrict_manage_posts', 'my_custom_function', 10, 1);

function my_custom_function($which) {
    // Your custom code here
}

Source Code Context

wp-admin/includes/class-wp-media-list-table.php:215 - How this hook is used in WordPress core
<?php
 210  			if ( ! $this->is_trash ) {
 211  				$this->months_dropdown( 'attachment' );
 212  			}
 213  
 214  			/** This action is documented in wp-admin/includes/class-wp-posts-list-table.php */
 215  			do_action( 'restrict_manage_posts', $this->screen->post_type, $which );
 216  
 217  			submit_button( __( 'Filter' ), '', 'filter_action', false, array( 'id' => 'post-query-submit' ) );
 218  
 219  			if ( $this->is_trash && $this->has_items()
 220  				&& current_user_can( 'edit_others_posts' )

PHP Documentation

<?php
/**
	 * @param string $which
	 */
Quick Info
  • Hook Type: Action
  • Parameters: 1
  • File: wp-admin/includes/class-wp-media-list-table.php
Related Hooks

Related hooks will be displayed here in future updates.