Печат на тази страница

How to disable Portfolio and FAQ from Avada theme

Написана от 
If you are running Avada WordPress theme and want to get rid of Portfolio and FAQs custom post type and theirs custom taxonomies — FAQ Categories, Portfolio Categories, Skills, Tags use the following code:

And that’s it — In your WordPress admin dashboard you’ll see the custom post type / taxonomy isn’t there anymore.

function webroom_deregister_post_type(){
unregister_post_type( 'avada_portfolio' );
unregister_post_type( 'avada_faq' );
unregister_taxonomy( 'portfolio_category');
unregister_taxonomy( 'portfolio_tags');
unregister_taxonomy( 'portfolio_skills');
unregister_taxonomy( 'faq_category');

The article was originally published at How to deregister custom post type or custom taxonomy

Warning: count(): Parameter must be an array or an object that implements Countable in /home/winphonebg/public_html/templates/winphonebg/html/com_k2/templates/default/item.php on line 249