WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| Line | Code |
|---|---|
| 984 | * Filters whether to show the bulk edit checkbox for a post in its list table. |
| 985 | * |
| 986 | * By default the checkbox is only shown if the current user can edit the post. |
| 987 | * |
| 988 | * @since 5.7.0 |
| 989 | * |
| 990 | * @param bool $show Whether to show the checkbox. |
| 991 | * @param WP_Post $post The current WP_Post object. |
| 992 | */ |
| 993 | if ( apply_filters( 'wp_list_table_show_post_checkbox', $show, $post ) ) : |
| 994 | ?> |
| 995 | <label class="screen-reader-text" for="cb-select-<?php the_ID(); ?>"> |
| 996 | <?php |
| 997 | /* translators: %s: Post title. */ |
| 998 | printf( __( 'Select %s' ), _draft_or_post_title() ); |
| 999 | ?> |
| 1000 | </label> |
| 1001 | <input id="cb-select-<?php the_ID(); ?>" type="checkbox" name="post[]" value="<?php the_ID(); ?>" /> |
| 1002 | <div class="locked-indicator"> |