[wp-trac] [WordPress Trac] #18714: terms_updated_messages filter
WordPress Trac
wp-trac at lists.automattic.com
Tue Sep 20 08:32:47 UTC 2011
#18714: terms_updated_messages filter
-------------------------+------------------------------
Reporter: johnbillion | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version:
Severity: normal | Resolution:
Keywords: has-patch |
-------------------------+------------------------------
Changes (by johnbillion):
* keywords: => has-patch
Comment:
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' );
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18714#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list