SHARE
TWEET

Untitled

a guest Jun 18th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /**
  3.  * Reveal the level name for a disallowed level in the PMPro content message on restricted content.
  4.  *
  5.  */
  6. function show_disallowed_level_names_content_filter( $r, $post_membership_levels_ids, $post_membership_levels_names ) {
  7.     return true;
  8. }
  9. add_filter( 'pmpro_membership_content_filter_disallowed_levels', 'show_disallowed_level_names_content_filter', 10, 3 );
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top