Return to Snippet

Revision: 50042
at August 4, 2011 23:28 by jamiebrwr


Initial Code
// Hook the translation filters
add_filter(  'gettext',  'change_post_to_article'  );
add_filter(  'ngettext',  'change_post_to_article'  );

function change_post_to_article( $translated ) {
     $translated = str_ireplace(  'Post',  'Article',  $translated );  // ireplace is PHP5 only
     return $translated;
}

Initial URL


Initial Description
Allows you to change the name of the "Posts" module within the admin section of WordPress.

Initial Title
Update "Posts" Menu Title

Initial Tags
wordpress, filter

Initial Language
PHP