Opened 20 months ago

Last modified 20 months ago

#18714 accepted enhancement

terms_updated_messages filter

Reported by: johnbillion Owned by: nacin
Priority: normal Milestone: Future Release
Component: Taxonomy Version:
Severity: normal Keywords: has-patch 3.4-early
Cc:

Description

In the same vein as #18710 we should add a terms_updated_messages filter for the term management screen. Messages are currently hardcoded as 'Item added', 'Items deleted', etc.

Attachments (1)

18714.patch (2.6 KB) - added by johnbillion 20 months ago.

Download all attachments as: .zip

Change History (3)

  • Keywords has-patch added

Patch which introduces a term_updates_messages filter.

Plugin usage:

function term_updated_messages( $messages ) {
	$messages['foo'] = array(
		0 => '',
		1 => __('Foo added.','foo'),
		2 => __('Foo deleted.','foo'),
		3 => __('Foo updated.','foo'),
		4 => __('Foo not added.','foo'),
		5 => __('Foo not updated.','foo'),
		6 => __('Foos deleted.','foo')
	);
	return $messages;
}
add_filter( 'term_updated_messages', 'foo_updated_messages' );
Version 0, edited 20 months ago by johnbillion (next)
  • Keywords 3.4-early added
  • Milestone changed from Awaiting Review to Future Release
  • Owner set to nacin
  • Status changed from new to accepted
Note: See TracTickets for help on using tickets.