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
.
View all references
$bulk_messages = apply_filters( 'bulk_post_updated_messages', $bulk_messages, $bulk_counts );
Changelog
Version | Description |
---|---|
3.7.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
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”):