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 |
---|---|
382 | * |
383 | * By default, custom post types use the messages for the 'post' post type. |
384 | * |
385 | * @since 3.7.0 |
386 | * |
387 | * @param array[] $bulk_messages Arrays of messages, each keyed by the corresponding post type. Messages are |
388 | * keyed with 'updated', 'locked', 'deleted', 'trashed', and 'untrashed'. |
389 | * @param int[] $bulk_counts Array of item counts for each message, used to build internationalized strings. |
390 | */ |
391 | $bulk_messages = apply_filters( 'bulk_post_updated_messages', $bulk_messages, $bulk_counts ); |
392 | $bulk_counts = array_filter( $bulk_counts ); |
393 |
|
394 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
395 | ?> |
396 | <div class="wrap"> |
397 | <h1 class="wp-heading-inline"> |
398 | <?php |
399 | echo esc_html( $post_type_object->labels->name ); |
400 | ?> |