Hello there,
We have removed the Portfolio feature with the following snippet:
function nh_pro_cleanup(){
unregister_post_type( 'x-portfolio' );
unregister_taxonomy( 'portfolio-tag' );
unregister_taxonomy( 'portfolio-category' );
}
add_action('init','nh_pro_cleanup', 9999);
Unfortunately, this has the result of breaking the Sidebars “All Taxonomies” list in “Appearance > Sidebars”.
When this snippet is active, the taxonomies list is empty.
Is there a better way to remove the portfolio to avoid this behavior?
Thank you!