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.
Source
$bulk_messages = apply_filters( 'bulk_post_updated_messages', $bulk_messages, $bulk_counts );
Changelog
Version | Description |
---|---|
3.7.0 | Introduced. |
Example migrated from Codex:
The following example adds custom bulk action updated messages for ‘my_cpt’ post type (cpt being an abbreviation for “custom post type”):