Add PMPro Membership Level Meta Box to a Custom Post Type

By 22 janvier 2016 Non classé No Comments

Now we are using a plugin PMPro Membership Level to block the access to some content.

Here is a trick to allow this for Custom Post.

Add the code in functions.php or better in the Site-Specific WordPress Plugin sports-pronostics.php

Then in the back-office :

PMPro-equipes

And in the front

equipe-bloc

Reste à régler cela pour que cela fonctionne avec un single-equipes.php custom ! Cool

Semble bloquer uniquement  mais pas les Custom Meta Boxes… Technical, no ???

Sources :

https://wordpress.org/support/topic/plugin-paid-memberships-pro-custom-post-types-taxonomies

http://www.paidmembershipspro.com/add-pmpro-membership-level-meta-box-to-a-custom-post-type/

https://gist.github.com/strangerstudios/1974258

http://memberships74.rssing.com/chan-14349507/all_p19.html

Leave a Reply