• Currently we are using pmpro to provide access to certain custom post type .
    and we checks if the user has a certain membership level to decide whether to give access to him or not and for this we use “pmpro_hasMembershipLevel” function .So how do we check if membership is expired for the user .
    any function , hook etc. ?

    Thanks in advance .

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter alexhal

    (@alexhal)

    Bump

    if pmpro_hasMembershipLevel() returns false they’re expired or never had a membership.

    If you want to know if the member’s level is _about_to_ expire, use pmpro_getMembershipLevelForUser() and pmpro_isLevelExpiringSoon() on the resulting level object.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How do we check if membership is expired fro the user ?’ is closed to new replies.