Code Monkey home page Code Monkey logo

Comments (3)

coneos avatar coneos commented on September 22, 2024

Amazing plugin thank you!

I just have also this issue with Multisite membership, it does work for subsites when I assign the main site membership in the post but it doesn’t work with categories.

I followed your tutorial below, created one category on main site then the exact same one changing the same id in wp_X_terms and wp_X_term_taxonomy.
Then I activated the add on, synchronize with main site but it is not asking for a membership when I assign that category on the subsite

https://www.paidmembershipspro.com/network-multisite-mega-post-paid-memberships-pro/#3

My goal is to let members assign a category to their post so their subscribers can have access. I don’t want to give them the ability to choose another membership.
Do you have a snippet that could do that? They don’t even have to select a category, I guess I could just add a membership X automatically to each post of author Y when it gets published?

THanks!

from pmpro-network-subsite.

andrewlimaza avatar andrewlimaza commented on September 22, 2024

This is quite difficult to achieve, due to that category ID's won't always match the main site. While it may be possible if you ensure both category ID's are the same across multiple sites it might work.

I recommend using the pmpro_has_membership_access_filter to have a custom code snippet for categories and restrictions on subsites. We are looking into a better way to achieve this.

from pmpro-network-subsite.

andrewlimaza avatar andrewlimaza commented on September 22, 2024

Update: This is now supported through the "category" edit functionality that allows you to assign membership levels to the categories when editing the post category.

I like this as it still gives you flexibility to restrict different categories to the same membership level and variations.

Screenshot 2023-12-11 at 15 18 28

from pmpro-network-subsite.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.