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.


Top ↑

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.


Top ↑

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.


Top ↑

Source

File: wp-admin/edit.php

View on Trac


Top ↑

Changelog

Changelog
VersionDescription
3.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.