apply_filters( 'wp_list_table_show_post_checkbox', bool $show, WP_Post $post )
- Since
- 5.7.0
Filters whether to show the bulk edit checkbox for a post in its list table.
Description
By default the checkbox is only shown if the current user can edit the post.
Compatibility
- WordPress
- since 5.7.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$showbool- Whether to show the checkbox.
$postWP_Post- The current WP_Post object.
Where this hook fires · 1
wp-admin/includes/class-wp-posts-list-table.php:1073WP_Posts_List_Table::column_cb()
Source code
* * @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 ) ) : $post_title = _draft_or_post_title(); // If the post has no title, try adding part of the excerpt. $no_title_excerpt = $this->get_no_title_excerpt( $post ); if ( '' !== $no_title_excerpt ) {Changelog
Introduced in 5.7.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.