I don’t recall renaming the menu slugs at all, but I did move around when menus are registered a bit, which may be playing a part here. Different hook or priority for example.
I believe they’re all added in the main custom-post-type-ui.php file now
Thread Starter
daigo
(@studio_pastel)
Thank you for replying.
Here I can tell you my gratitude.
Your plugin helps me a lot!!
Anyway, I found the code I wrote:
add_action( 'admin_menu', 'remove_admin_menu_links' );
function remove_admin_menu_links() {
remove_menu_page('cpt_main_menu');
}
This doesn’t work. I am sure it did work before.
Could you teach me why?
Thread Starter
daigo
(@studio_pastel)
Today, I updated the latest version 1.1.1 and solved my problem like below:
add_action( 'admin_menu', 'remove_admin_menu_links' );
function remove_admin_menu_links() {
remove_menu_page('cptui_main_menu');
}
Thank you.
I have to believe now you were on 0.8.x before when that was first working, because the cptui_ prefix would have gotten changed as far back as january this year. with the release of 1.0.x.
Regardless, glad it worked out finally.
Thread Starter
daigo
(@studio_pastel)
Thanks a lot!!
As you mentioned, I guess I skipped some versions.
You missed a headache too, which is a good thing. It was a rocky upgrade but I think I got everything ironed out finally. 1.1.x is a simplification of the new UI that I introduced.
Anyways, we’re all up and running again here.