Change name “posts” in admin menu admin side

Posted: July 30, 2015 in Uncategorized
add_filter(  'gettext',  'wps_translate_words_array'  );
 add_filter(  'ngettext',  'wps_translate_words_array'  );
   function wps_translate_words_array( $translated ) {

    $words = array(
                    // 'word to translate' = > 'translation'
                    'Posts' => 'Article',
                    'Post' => 'Articles',
                    'Pages' => 'Stuffing',
                    'Media' => 'Upload Images',
                    'Links' => 'Blog Roll',
                );

    $translated = str_ireplace(  array_keys($words),  $words,  $translated );
    return $translated;
   }
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s