Posted By

jamiebrwr on 08/04/11


Tagged

menu wordpress filter title hook


Versions (?)

Update "Posts" Menu Title


 / Published in: PHP
 

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

  1. // Hook the translation filters
  2. add_filter( 'gettext', 'change_post_to_article' );
  3. add_filter( 'ngettext', 'change_post_to_article' );
  4.  
  5. function change_post_to_article( $translated ) {
  6. $translated = str_ireplace( 'Post', 'Article', $translated ); // ireplace is PHP5 only
  7. return $translated;
  8. }

Report this snippet  

You need to login to post a comment.