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

---

# apply_filters( ‘post_updated_messages’, array[] $messages )

## In this article

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

Filters the post updated messages.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/post_updated_messages/?output_format=md#parameters)󠁿

 `$messages`array[]

Post updated messages. For defaults see `$messages` declarations above.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/post_updated_messages/?output_format=md#source)󠁿

    ```php
    $messages = apply_filters( 'post_updated_messages', $messages );
    ```

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

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

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

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

 1.  [Skip to note 2 content](https://developer.wordpress.org/reference/hooks/post_updated_messages/?output_format=md#comment-content-2851)
 2.   [slushman](https://profiles.wordpress.org/slushman/)  [  8 years ago  ](https://developer.wordpress.org/reference/hooks/post_updated_messages/#comment-2851)
 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%2Fpost_updated_messages%2F%23comment-2851)
    Vote results for this note: 6[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%2Fpost_updated_messages%2F%23comment-2851)
 4. This is the $messages declaration mentioned in the notes above:
 5.     ```php
        $messages['post'] = array(
            0  => '', // Unused. Messages start at index 1.
            1  => __( 'Post updated.' ) . $view_post_link_html,
            2  => __( 'Custom field updated.' ),
            3  => __( 'Custom field deleted.' ),
            4  => __( 'Post updated.' ),
            /* translators: %s: date and time of the revision */
            5  => isset( $_GET['revision'] ) ? sprintf( __( 'Post restored to revision from %s.' ), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
            6  => __( 'Post published.' ) . $view_post_link_html,
            7  => __( 'Post saved.' ),
            8  => __( 'Post submitted.' ) . $preview_post_link_html,
            9  => sprintf( __( 'Post scheduled for: %s.' ), '<strong>' . $scheduled_date . '</strong>' ) . $scheduled_post_link_html,
            10 => __( 'Post draft updated.' ) . $preview_post_link_html,
        );
        $messages['page'] = array(
            0  => '', // Unused. Messages start at index 1.
            1  => __( 'Page updated.' ) . $view_page_link_html,
            2  => __( 'Custom field updated.' ),
            3  => __( 'Custom field deleted.' ),
            4  => __( 'Page updated.' ),
            /* translators: %s: date and time of the revision */
            5  => isset( $_GET['revision'] ) ? sprintf( __( 'Page restored to revision from %s.' ), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
            6  => __( 'Page published.' ) . $view_page_link_html,
            7  => __( 'Page saved.' ),
            8  => __( 'Page submitted.' ) . $preview_page_link_html,
            9  => sprintf( __( 'Page scheduled for: %s.' ), '<strong>' . $scheduled_date . '</strong>' ) . $scheduled_page_link_html,
            10 => __( 'Page draft updated.' ) . $preview_page_link_html,
        );
        $messages['attachment'] = array_fill( 1, 10, __( 'Media file updated.' ) ); // Hack, for now.
        ```
    
 6.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fpost_updated_messages%2F%3Freplytocom%3D2851%23feedback-editor-2851)

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