Hi there,
wanted to create an CPT for testimonials. There is no single page for each testimonial needed so i need to not make it public, but queryable and visible in dashboard.
Problem: As soon as i remove the ‘Public’ option at the panel and export the theme, then the CPT is removed from the admin menu.
Maybe that’s because it’s impossible to force ‘Show UI’:
I need to move the code from function.php to custom.php and add the ‘show_ui’ => true value by hand to get it to work.
What am I doing wrong here?
EDIT:
See this example:
In Code there is no “‘show_ui’ => true” value generated: