• Resolved jockoe

    (@jockoe)


    Hi. I have 2 issues going on simultaneously. (the membership is ID 4 and has the name ‘Free Trial with Full Access’.)

    Issue #1:
    I am using the code recipe on this page, Apply a Default PMPro Membership Level During WordPress User Registration, to assign a membership to users that register to my site. The membership being assigned has an expiration date of ‘1 Hour’.

    The membership is assigned when a user registers, but I see nothing to indicate that the user’s membership will expire. The ‘Members List’ lists the user’s End Date as ‘Never’. I’ve tried expiring the user manually using the plugin ‘WP Crontrol’ with no luck.

    Issue #2:
    I am using the PMP – Roles Add On. The role of ‘Free Trial with Full Access’ is not being assigned when the user registers and is assigned the default registration. I have the user role checlmarked on the settings page for the level and as the default role in the settings for WordPress.

    [I’ve tried deactivating the PMP – Roles Add On and still have both issues.]

    The page I need help with: [log in to see the link]

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

    (@jockoe)

    Using the PMP – Expiration Date Add On did not solve my problem.

    Plugin Author Andrew Lima

    (@andrewza)

    Hi there,

    When applying a level via the pmpro_changeMembershipLevel function, it does not automatically pull in the level settings data when specifying a numeric value. This requires an associative array to be passed through to it in order to use this function to adjust expiration dates and such.You will need to pass ‘enddate’ with the format ‘YYYY-MM-DD H:I:S’.

    Here is source code of how we handle this via PayPal payments – https://github.com/strangerstudios/paid-memberships-pro/blob/733142ba8050e0ec416382d56140ae27bdfa8380/services/ipnhandler.php#L565-L587

    If the user’s end date shows as “Never” this means they do not have an expiration date set.

    For questions relating to premium and free Add Ons distributed via Paid Memberships Pro site, please can you open a support ticket on our site and someone from our team will continue to investigate this for you.

    We are not allowed to support issues that arise from premium products or products not distributed through www.remarpro.com.

    Thank you for understanding.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘No Expiration’ is closed to new replies.