Title: term_updated_messages
Published: April 25, 2014
Last modified: May 20, 2026

---

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

## In this article

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

[ Back to top](https://developer.wordpress.org/reference/hooks/term_updated_messages/?output_format=md#wp--skip-link--target)

Filters the messages displayed when a tag is updated.

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

 `$messages`array[]

Array of arrays of messages to be displayed, keyed by taxonomy name.

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

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

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

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/term_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/term_updated_messages/?output_format=md#user-contributed-notes)󠁿

 1.  [Skip to note 2 content](https://developer.wordpress.org/reference/hooks/term_updated_messages/?output_format=md#comment-content-5667)
 2.   [d79](https://profiles.wordpress.org/d79/)  [  4 years ago  ](https://developer.wordpress.org/reference/hooks/term_updated_messages/#comment-5667)
 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%2Fterm_updated_messages%2F%23comment-5667)
    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%2Fterm_updated_messages%2F%23comment-5667)
 4. Custom messages for when a term of a custom taxonomy is updated:
 5.     ```php
        function wpdocs_updated_messages( $messages ) {
        	$messages['wpdocs_taxonomy'] = array(
        		0 => '',
        		1 => __( 'Term added.' ),
        		2 => __( 'Term deleted.' ),
        		3 => __( 'Term updated.' ),
        		4 => __( 'Term not added.' ),
        		5 => __( 'Term not updated.' ),
        		6 => __( 'Terms deleted.' ),
        	);
    
        	return $messages;
        }
    
        add_filter( 'term_updated_messages', 'wpdocs_updated_messages' );
        ```
    
 6.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fterm_updated_messages%2F%3Freplytocom%3D5667%23feedback-editor-5667)

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