wp_list_table_show_post_checkbox

过滤钩子


apply_filters( 'wp_list_table_show_post_checkbox', $show, $post )
参数
  • (bool)
    $show
    Whether to show the checkbox.
    Required:
  • (WP_Post)
    $post
    The current WP_Post object.
    Required:
定义位置
  • wp-admin/includes/class-wp-posts-list-table.php
    , line 1007
引入
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.

if ( apply_filters( 'wp_list_table_show_post_checkbox', $show, $post ) ) :