Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: bulk_post_updated_messages

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
271  *
272  * By default, custom post types use the messages for the 'post' post type.
273  *
274  * @since 3.7.0
275  *
276  * @param array $bulk_messages Arrays of messages, each keyed by the corresponding post type. Messages are
277  *                             keyed with 'updated', 'locked', 'deleted', 'trashed', and 'untrashed'.
278  * @param array $bulk_counts   Array of item counts for each message, used to build internationalized strings.
279  */
280 $bulk_messages = apply_filters( 'bulk_post_updated_messages', $bulk_messages, $bulk_counts );
281 $bulk_counts = array_filter( $bulk_counts );
282
283 require_once( ABSPATH . 'wp-admin/admin-header.php' );
284 ?>
285 <div class="wrap">
286 <h1><?php
287 echo esc_html( $post_type_object->labels->name );
288 if ( current_user_can( $post_type_object->cap->create_posts ) )
289      echo ' <a href="' . esc_url( admin_url( $post_new_file ) ) . '" class="page-title-action">' . esc_html( $post_type_object->labels->add_new ) . '</a>';