Update "Posts" Menu Title


/ Published in: PHP
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.