How to remove Portfolio and FAQ custom post type from Avada theme.

webroomtech.com
Feb 13, 2020

--

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:

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');}add_action('init','webroom_deregister_post_type');

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

The article was originally published at https://www.webroom.tech/how-to-deregister-custom-post-type-or-custom-taxonomy/

--

--

webroomtech.com
0 Followers

webroom.tech is created and written with one purpose: to help anyone developing their awesome WordPress and WooCommerce website.