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]