-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
working only for Standard post format #47
Comments
Did you ever find a solution for this? I am trying to integrate PMP with an Events plugin and am trying to get around needing to create a Membership Level for each class to allow single class access... Thanks, |
Not a real solution, but as a workaround I copy/pasted the logic found in this PMP plugin and put in a child theme php where it writes the html. This way I can protect the Video post format too, but I hoped in a hook or something to do that |
Sorry, do you mind sharing the logic you copy-pasted? I am pretty new to JS and JQuery and get confused. Is it the part referenced on #45 ? Did you just make this $post_type = "page, 'CPT'"; ? Or would it be $post_type = array('post', 'page', 'CPT'); ? Really appreciate your responding!! |
I took this function from the plugin: |
OK, will have a look in a bit, thank you! |
You may use the following filter to add functionality of Addon Packages to any post type needed - https://github.com/strangerstudios/pmpro-addon-packages/blob/dev/pmpro-addon-packages.php#L103 Please note that Github is used for bug reporting. For any support related questions to this product, please reach out to www.paidmembershipspro.com Thanks! |
For future, if anyone needs this info, I needed to add the Custom Post Type Add On as well as the Addon Packages Add On to get the Addon Packages box to show on my custom posts!! |
(also, I had reached out to support, but it has taken a week of back and forth to figure out I needed this extra add on...! So I thought it was worth asking here too just in case) |
if I create a Standard post format, it works ok.
But if I create a Video post format for example, it gets overridden.
Is there a hook or filter where I can add custom logic to enable Video Post format to be restricted?
thanks
The text was updated successfully, but these errors were encountered: