Apologies if this isn’t an appropriate question for the forum, I’m new to wordpress development and needed to bring this question to some experts.
I’ve written a plugin that creates custom post types. Currently, I’ve created a menu page with add_menu_page. I’ve hooked this to a function that creates a page that includes a form to add a custom post type.
When the user submits the form, the page inside the admin dashboard refreshes. However, I have to manually refresh the page to see the new custom post type appear in my admin menu!
Read more here:: Trigger refresh of admin menu