Register_post_type labels argument not updating name in WP Admin screen

[ad_1]

So I am working on creating a second blog on my website for another topic, and want to change the name that shows up in the WP admin area. This is the code I have in functions php:

function PEI_Corner () {
register_post_type(“PEI-Corner”, array(
“public” => true,
“show_in_rest” => true,
“labels” => array(
“name” => ‘PEI Posts’,
),
“menu_icon” => “dashicons-megaphone”,
));
}

add_action (‘init’, ‘PEI_Corner’);

Unfortunately, both the menu icon and name label are not updating, I had originally uploaded a function file that had different code and so this post type was originally Press Release with a different icon. Now that I updated it, the WP is not updating, why is this?

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer