• Resolved dompl

    (@dompl)


    Hi,

    I have 2 types of membership. One of them require payment to view the content on the site whereas the other is a Free Membership.

    The content pages are set to belong to both groups, although, when I set a price in PMPro Addon Package Settings, the page is also require payment from both of the group.

    Is it possible to request a payment only from Free Members and display the content to the members who belong to paid membership group?

    Thanks

    https://www.ads-software.com/plugins/paid-memberships-pro/

Viewing 1 replies (of 1 total)
  • Thread Starter dompl

    (@dompl)

    Got the solution

    function my_pmproap_all_access_levels($levels, $user_id, $post_id)
    {
    	//I'm just adding the level, but I could do some calculation based on the user and post id to programatically give access to content
    	$levels = array(1);
    	return $levels;
    }
    add_filter("pmproap_all_access_levels", "my_pmproap_all_access_levels", 10, 3);
Viewing 1 replies (of 1 total)
  • The topic ‘PMPro Addons Plugin’ is closed to new replies.