/ Published in: PHP
Allows you to change the name of the "Posts" module within the admin section of WordPress.
Expand |
Embed | Plain Text
// 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; }
You need to login to post a comment.
