strangerstudios / pmpro-limit-post-views

Integrates with Paid Memberships Pro to limit the number of times non-members can view posts on your site.
https://www.paidmembershipspro.com/add-ons/pmpro-limit-post-views/
7 stars 19 forks source link

MMPU Compatibility #51

Closed dparker1005 closed 5 months ago

dparker1005 commented 2 years ago

Right now, this add on determines the number of post views that a user has based on their first membership level. To see examples of this, search for $current_user->membership_level and pmpro_getMembershipLevelForUser( in pmpro-limit-post-views.php.

Ideally, we should search for the membership level that they have with the most views and make that their limit.

It also looks like we track views in a cookie per level. It may make things less confusing if we just track a total lpv count per user and just compare that number to the max allowance of their current membership levels.

dparker1005 commented 5 months ago

Resolved in 1.0