Membership 2 Pro Bug

When "URL Protection" addon is enabled in M2, in "Dashboard > Membership 2 > Protection Rules > URL Restrictions" section, all the protected links are shown. Though it's supposed to show 20 per page.

  • Panos

    Hi there foung ,

    Thanks for reporting this!

    Until this is fixed in future release could you please replace file:
    wp-content/plugins/membership/app/rule/url/class-ms-rule-url-model.php

    In case you need to change the number of items, say from 20 to 10, you can use add the following to your theme's functions.php:

    add_filter( 'rule_items_per_page', function( $per_page, $rule_id ){
    
    if( 'url' == $rule_id ){
    		$per_page = 10;
    	}
    
    	return $per_page;
    
    }, 10, 2 );

    Cheers!

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.