Skip to content
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

Closed
sirol81 opened this issue Oct 20, 2020 · 8 comments
Closed

working only for Standard post format #47

sirol81 opened this issue Oct 20, 2020 · 8 comments

Comments

@sirol81
Copy link

sirol81 commented Oct 20, 2020

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

@bethgee
Copy link

bethgee commented Mar 31, 2021

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,
Beth

@sirol81
Copy link
Author

sirol81 commented Mar 31, 2021

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

@bethgee
Copy link

bethgee commented Mar 31, 2021

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!!

@sirol81
Copy link
Author

sirol81 commented Mar 31, 2021

I took this function from the plugin:
function pmproap_pmpro_text_filter( $text ) {
and added it to my function.php from my child theme, renamed it and called when needed to visualize my video post format content

@bethgee
Copy link

bethgee commented Mar 31, 2021

OK, will have a look in a bit, thank you!

@andrewlimaza
Copy link

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!

@bethgee
Copy link

bethgee commented Apr 7, 2021

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!!

@bethgee
Copy link

bethgee commented Apr 7, 2021

(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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants