Title: bulk_post_updated_messages
Published: April 25, 2014
Last modified: August 20, 2026

---

# apply_filters( ‘bulk_post_updated_messages’, array[] $bulk_messages, int[] $bulk_counts )

## In this article

 * [Description](https://developer.wordpress.org/reference/hooks/bulk_post_updated_messages/?output_format=md#description)
 * [Parameters](https://developer.wordpress.org/reference/hooks/bulk_post_updated_messages/?output_format=md#parameters)
 * [More Information](https://developer.wordpress.org/reference/hooks/bulk_post_updated_messages/?output_format=md#more-information)
 * [Source](https://developer.wordpress.org/reference/hooks/bulk_post_updated_messages/?output_format=md#source)
 * [Changelog](https://developer.wordpress.org/reference/hooks/bulk_post_updated_messages/?output_format=md#changelog)
 * [User Contributed Notes](https://developer.wordpress.org/reference/hooks/bulk_post_updated_messages/?output_format=md#user-contributed-notes)

Filters the bulk action updated messages.

## 󠀁[Description](https://developer.wordpress.org/reference/hooks/bulk_post_updated_messages/?output_format=md#description)󠁿

By default, custom post types use the messages for the ‘post’ post type.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/bulk_post_updated_messages/?output_format=md#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](https://developer.wordpress.org/reference/hooks/bulk_post_updated_messages/?output_format=md#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](https://developer.wordpress.org/reference/hooks/bulk_post_updated_messages/?output_format=md#source)󠁿

    ```php
    $bulk_messages = apply_filters( 'bulk_post_updated_messages', $bulk_messages, $bulk_counts );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/edit.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.1/src/wp-admin/edit.php#L408)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/edit.php#L408-L408)

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/bulk_post_updated_messages/?output_format=md#changelog)󠁿

| Version | Description | 
| [3.7.0](https://developer.wordpress.org/reference/since/3.7.0/) | Introduced. |

## 󠀁[User Contributed Notes](https://developer.wordpress.org/reference/hooks/bulk_post_updated_messages/?output_format=md#user-contributed-notes)󠁿

 1.  [Skip to note 2 content](https://developer.wordpress.org/reference/hooks/bulk_post_updated_messages/?output_format=md#comment-content-4682)
 2.   [Steven Lin](https://profiles.wordpress.org/stevenlinx/)  [  6 years ago  ](https://developer.wordpress.org/reference/hooks/bulk_post_updated_messages/#comment-4682)
 3. [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fbulk_post_updated_messages%2F%23comment-4682)
    Vote results for this note: 0[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fbulk_post_updated_messages%2F%23comment-4682)
 4. Example migrated from Codex:
 5. The following example adds custom bulk action updated messages for ‘my_cpt’ post
    type (cpt being an abbreviation for “custom post type”):
 6.     ```php
        add_filter( 'bulk_post_updated_messages', 'my_bulk_post_updated_messages_filter', 10, 2 );
    
        function my_bulk_post_updated_messages_filter( $bulk_messages, $bulk_counts ) {
    
            $bulk_messages['my_cpt'] = array(
                'updated'   => _n( '%s my_cpt updated.', '%s my_cpts updated.', $bulk_counts['updated'] ),
                'locked'    => _n( '%s my_cpt not updated, somebody is editing it.', '%s my_cpts not updated, somebody is editing them.', $bulk_counts['locked'] ),
                'deleted'   => _n( '%s my_cpt permanently deleted.', '%s my_cpts permanently deleted.', $bulk_counts['deleted'] ),
                'trashed'   => _n( '%s my_cpt moved to the Trash.', '%s my_cpts moved to the Trash.', $bulk_counts['trashed'] ),
                'untrashed' => _n( '%s my_cpt restored from the Trash.', '%s my_cpts restored from the Trash.', $bulk_counts['untrashed'] ),
            );
    
            return $bulk_messages;
    
        }
        ```
    
 7.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fbulk_post_updated_messages%2F%3Freplytocom%3D4682%23feedback-editor-4682)

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fbulk_post_updated_messages%2F)
before being able to contribute a note or feedback.