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.
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
andpmpro_getMembershipLevelForUser(
inpmpro-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.