Membership plugin for 2 webs using the same subscription

Hello,

we have 2 websites. In one of them we have configurated membership plugin to let our registered users accede to our premium zone, and we would like to let them accede to the other webpage using the same subscription, so only registered users can see the content of this second web page. Is there any way to do this?

  • Tyler Postle
    • Recruit

    Hey Conecta,

    Hope you’re doing well today and thanks for your question!

    If you want 1 membership installation to span over multiple sites you will need to set global tables to true. You can do this by adding this to your wp-config.php file:

    define( 'MEMBERSHIP_GLOBAL_TABLES', true);
    define( 'MEMBERSHIP_GLOBAL_MAINSITE', 1);

    “1” being the blog ID of your main blog.

    Now you should be able to sell 1 subscription and block users from content across both sites :slight_smile:

    hope this helps Conecta. Let us know if you need any further assistance here.

    All the best,

    Tyler

  • Tyler Postle
    • Recruit

    Hey Conecta,

    Hope you’re doing well today and thanks for your reply!

    Are you using multisite for these 2 websites? Or are they completely separate sites? Sorry, I should have mentioned this in my original post, those defines can ONLY be used within a multisite environment.

    To answer your questions, if you are within multisite, then you won’t need another plugin to make it work :slight_smile:

    If you’re using 2 single sites or 1 single and 1 multi, then best way here would be to include a link to a free subscription on the other site within the email that the user receives when purchase the membership :slight_smile: then they can get access to all the content on that site as well.

    How does that sound? Let us know if you have any further questions!

    Look forward to hearing back.

    All the best,

    Tyler