Created
June 6, 2019 21:51
-
-
Save kimcoleman/0e52d83faf225e39fa4b59699bef1a33 to your computer and use it in GitHub Desktop.
Reveal the level name for a disallowed level in the PMPro content message on restricted content.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Reveal the level name for a disallowed level in the PMPro content message on restricted content. | |
* | |
*/ | |
function show_disallowed_level_names_content_filter( $r, $post_membership_levels_ids, $post_membership_levels_names ) { | |
return true; | |
} | |
add_filter( 'pmpro_membership_content_filter_disallowed_levels', 'show_disallowed_level_names_content_filter', 10, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment