Answers for "woocommerce product_cat apply to custom post type"

CSS
0

woocommerce product_cat apply to custom post type

add_action( 'init', 'add_product_cat_to_custom_post_type' );
function add_product_cat_to_custom_post_type() {
    register_taxonomy_for_object_type( 'product_cat', 'custom_post_type' );
}
Posted by: Guest on July-16-2021

Code answers related to "woocommerce product_cat apply to custom post type"

Browse Popular Code Answers by Language