wp_list_table_show_post_checkbox filter-hookWP 5.7.0

Filters whether to show the bulk edit checkbox for a post in its list table.

By default the checkbox is only shown if the current user can edit the post.


add_filter( 'wp_list_table_show_post_checkbox', 'wp_kama_list_table_show_post_checkbox_filter', 10, 2 );

 * Function for `wp_list_table_show_post_checkbox` filter-hook.
 * @param bool    $show Whether to show the checkbox.
 * @param WP_Post $post The current WP_Post object.
 * @return bool
function wp_kama_list_table_show_post_checkbox_filter( $show, $post ){

	// filter...
	return $show;
Whether to show the checkbox.
The current WP_Post object.


Since 5.7.0 Introduced.

Where the hook is called

wp-admin/includes/class-wp-posts-list-table.php 1029
if ( apply_filters( 'wp_list_table_show_post_checkbox', $show, $post ) ) :

Where the hook is used in WordPress

Usage not found.