I am considering upgrading my Membership Premium 3.5.3.2

I am considering upgrading my Membership Premium 3.5.3.2 site to Membership Pro 2.
I currently use the following code/shortcodes/hook/links, please tell me if they are still supported by the new plugin, and if not, what the new code/workaround should be:
Code:
current_user_on_level(n)
Shortcodes:
[level-aaaaa]
[not-level-aaaaa]
Hook:
add_action( 'membership_mark_for_expire', ...
Hardcoded links:
href="/account/"
href="/subscriptions/"
href="/register/"

Thank you.

  • Luís
    • Support

    Hi Ian ,

    Hope you're doing well today!

    You are using a older version of Membership and it changed a little bit. The best option should be install the last version (3.5.3.3) of Membership 1, before upgrade it to Membership 2.

    http://premium.wpmudev.org/download/31405892_membership-3.5.33.zip

    To update to 3.5.3.3 version, please download the .zip file above and unzip it to your local storage. Then access to your site through FTP, go to the "/wp-content/plugins/membership" folder and overwrite all the content of this folder with the files from the unzipped archive.

    In your dashboard it will be displayed the instructions to procede the upgrade to Membership 2.

    As is described in the plugin usage:

    M2 will import membership levels, subscription information/data, and member data from Membership.

    However, M2 will not import shortcodes or content protection settings. So after upgrading, you will need to add in all your content protection settings for each membership level, and find and replace any Membership-generated shortcodes with M2 shortcodes. Tip: use a handy plugin like Better Search Replace to make that more of a cheer than a chore.

    Note: Please make sure that, before overwriting any files and procede to the upgrade, you've made a backup of your entire website (files and database). To do that, you can use our Snapshot plugin:

    https://premium.wpmudev.org/project/snapshot/

    Regarding to the supported shortcodes/code, I think you should change them to:

    Code

    current_user_on_level(n)

    to

    has_membership()

    Shortcodes

    [level-aaaaa]

    to

    [ms-protect-content id="1"] Only members of membership-1 can see this! [/ms-protect-content]

    and

    [not-level-aaaaa]

    to

    [ms-protect-content id="2,3" access="no" silent="yes"] Everybody except members of memberships 2 or 3 can see this![/ms-protect-content]

    I hope this information has been helpful. If I can help you in this or other questions, please let me know!

    Cheers, Luís

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.