diff --git a/wp-admin/includes/class-wp-posts-list-table.php b/wp-admin/includes/class-wp-posts-list-table.php index 22a46d27c9..a82bad702d 100644 --- a/wp-admin/includes/class-wp-posts-list-table.php +++ b/wp-admin/includes/class-wp-posts-list-table.php @@ -925,7 +925,19 @@ class WP_Posts_List_Table extends WP_List_Table { * @param WP_Post $post The current WP_Post object. */ public function column_cb( $post ) { - if ( current_user_can( 'edit_post', $post->ID ) ) : + $show = current_user_can( 'edit_post', $post->ID ); + + /** + * 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. + * + * @since 5.7.0 + * + * @param bool $show Whether to show the checkbox. + * @param WP_Post $post The current WP_Post object. + */ + if ( apply_filters( 'wp_list_table_show_post_checkbox', $show, $post ) ) : ?>