Comments (3)
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.
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.
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.
from pmpro-network-subsite.
Related Issues (17)
- Front-end user menus items for subsites HOT 1
- Erroneous admin notice reminder for building pages HOT 1
- Make sure the expiration and other crons don't run on a subsite HOT 1
- Bug: No way to configure non-member messages for current site while plugin is activated. HOT 1
- Expand subsite core functionality HOT 1
- Error when activating on a non-network WP
- Detailed information? HOT 6
- Duplicating Admin Activity Emails for all Sites in the Network HOT 1
- Update plugin for translation
- Removed users do not lose membership HOT 2
- Hide Toolbar setting does not apply to sub sites when running multisite. HOT 2
- Hi there HOT 2
- Subsite fatal error if PMPro not activated on subsite before Multisite Memberships
- what about admin bar? HOT 2
- Correct Syntax Error HOT 1
- Admin Menu for Add On HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pmpro-network-subsite.