bulk_post_updated_messages WordPress Filter Hook
The bulk_post_updated_messages hook is triggered when a post is updated in bulk. It allows you to modify the messages that are shown to the user when a post is updated.
apply_filters( 'bulk_post_updated_messages', array[] $bulk_messages , int[] $bulk_counts ) #
Filters the bulk action updated messages.
Description
By default, custom post types use the messages for the ‘post’ post type.
Parameters
- $bulk_messages
(array[])Arrays of messages, each keyed by the corresponding post type. Messages are keyed with 'updated', 'locked', 'deleted', 'trashed', and 'untrashed'.
- $bulk_counts
(int[])Array of item counts for each message, used to build internationalized strings.
More Information
Available in WP 3.7+. That does not mean you have to specifically check for WP version before using this filter, no errors happen when using non-existent filters.
Source
File: wp-admin/edit.php
Changelog
Version | Description |
---|---|
3.7.0 | Introduced. |