I’m working on wordpress. Can anybody help me how can I change admin panel menu label in wordpress.
Specifically, I want to change the label for Posts to Articles. And all of the instances in admin panel of Posts to Article.
Kindly advise.
I’m working on wordpress. Can anybody help me how can I change admin panel menu label in wordpress.
Specifically, I want to change the label for Posts to Articles. And all of the instances in admin panel of Posts to Article.
Kindly advise.
You must be logged in to post a comment.
Here is the code you need to add into your theme functions file.
Adapted from: https://wordpress.stackexchange.com/questions/9211/changing-admin-menu-labels
I was able to solve this using the
post_type_labels_{$post_type}
filter like soThis answer also leaves translation support intact. The only note is you will probably have to run it from a plugin because the theme loads too late.
In your theme functions file include these lines:
Author of previous answer forgot to include ‘$labels->name_admin_bar = ‘Add News’;’ string.