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

Filters the messages displayed when a tag is updated.

Parameters

$messagesarray[]
Array of arrays of messages to be displayed, keyed by taxonomy name.

Source

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

Changelog

VersionDescription
3.7.0Introduced.

User Contributed Notes

  1. Skip to note 2 content

    Custom messages for when a term of a custom taxonomy is updated:

    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' );

You must log in before being able to contribute a note or feedback.