term_updated_messages
Filters the messages displayed when a tag is updated.
Description
Parameters (1)
- 0. $messages (array)
- The messages to be displayed.
Usage
- To run the hook, copy the example below.
- $messages = apply_filters( 'term_updated_messages', $messages );
- if ( !empty( $messages ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the term_updated_messages callback
- function filter_term_updated_messages( $messages ) {
- // make filter magic happen here...
- return $messages;
- };
- // add the filter
- add_filter( 'term_updated_messages', 'filter_term_updated_messages', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'term_updated_messages', 'filter_term_updated_messages', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /wp-admin/includes/edit-tag-messages.php
- $messages = apply_filters( 'term_updated_messages', $messages );