Hide Categories from vendors
-
hallo,
I want to prevent vendors from adding products to some categories
I found a code that hides some categories from vendors ( for other plugin ), can you help me redo it for dokan?
add_filter( 'wcfm_is_allow_vendor_store_taxomony_by_id', function( $is_Allow, $vendor_category_id, $store_id, $preferred_taxonomy ) { $restricted_categories = array(35, 36, 40, 42); if( in_array( $vendor_category_id, $restricted_categories) ) { $is_Allow = false; } return $is_Allow; }, 50, 4 );
thanks
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Hide Categories from vendors’ is closed to new replies.