wphooks.info - restrict_manage_posts

restrict_manage_posts

(trunk - 5.0-alpha-42732)

The hook occurs in the following 2 files

wp-admin/includes/class-wp-media-list-table.php:
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
		}
?>
		<div class="actions">
<?php
if ( ! is_singular() ) {
	if ( ! $this->is_trash ) {
		$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 && current_user_can( 'edit_others_posts' ) && $this->has_items() ) {
	submit_button( __( 'Empty Trash' ), 'apply', 'delete_all', false );
}
		?>
		</div>
wp-admin/includes/class-wp-posts-list-table.php:
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
	 *
	 * @since 2.1.0
	 * @since 4.4.0 The `$post_type` parameter was added.
	 * @since 4.6.0 The `$which` parameter was added.
	 *
	 * @param string $post_type The post type slug.
	 * @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' ) );
	}
}