Hi,
I am aware of the way to hide Portfolio using this code:
add_action('admin_head', 'hide_portfolio');
function hide_portfolio() {
echo '<style>
li#menu-posts-x-portfolio {
display: none;
}
</style>';
}
However, that does not remove it from the system. It is still registered. This leads to useless sitemap and other seo stuff using SEO plugins (needs to be turned-off manually), and clogging all plugins that list Custom Post Types for various uses.
For example, Essential Grid does have Demo CPT, but it also has an option in settings to turn it off.
I suggest that That Theme Options
has a toggle where Portfolio can be turned off completely, for those who don’t use it.
In the meantime, is there a magic code to turn it off completely?
Thanks!