How to disable product limit from php

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!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WC Marketplace How to disable product limit from php

Viewing 2 reply threads
  • Author
    • #75978


      I’d like to override my default product limit settings in certain specific cases, so I need to be able to control it within php “if” statements.
      Can you give me a piece of code that would override the default product limit?
      Thanks a lot!

    • #76223
      WCFM Forum


      Do you mean store page product limit?

      If so, then you may use this code –

      add_filter( 'wcfmmp_store_ppp', function( $post_per_page ) {
      	$post_per_page = '50';
      	return $post_per_page;
      }, 50 );

      Thank You

    • #76414

      No, I meant product limit from capabilities. I want to override the default setting.

Viewing 2 reply threads
  • You must be logged in to reply to this topic.