Category limit not working

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Viewing 3 reply threads
  • Author
    • #23251

      Under Groups I have a Basic group which has the category limit set to 3. Under Categories I have selected 3 categories. However, the seller who is part of this group seems to be able to post products in additional categories. See attached screenshot.

      You must be logged in to view attached files.
    • #23272
      WCFM Forum


      Are you using only WCfM – Groups & Staffs or also have WCfM Ultimate?

      If you don’t have WCfM Ultimate then add this function to your site –

      function wcfmcap_allowed_taxonomies_custom( $allow, $taxonomy, $term_id ) {
      	$wcfm_capability_options = apply_filters( 'wcfm_capability_options_rules', get_option( 'wcfm_capability_options', array() ) );
      	if( $taxonomy == 'product_cat' ) $taxonomy = 'categories';
      	$allowed_taxonomies    = ( !empty( $wcfm_capability_options['allowed_' . $taxonomy] ) ) ? $wcfm_capability_options['allowed_' . $taxonomy] : array();
      	if( is_array( $allowed_taxonomies ) && !empty( $allowed_taxonomies ) ) {
      		if( !in_array( $term_id, $allowed_taxonomies ) ) {
      			$allow = false;
      	return $allow;
      add_filter( 'wcfm_allowed_taxonomies', 'wcfmcap_allowed_taxonomies_custom', 450, 3 );

      Category filtering is a core feature for WCfM Ultimate. But with this function it will work without WCfM Ultimate as well.

      Thank You

    • #23278

      Thank you

    • #24970
      WCFM Forum


Viewing 3 reply threads
  • The topic ‘Category limit not working’ is closed to new replies.