Created
April 5, 2018 14:21
-
-
Save ideadude/deb4be2c9181f44a82e9c06f36c9b638 to your computer and use it in GitHub Desktop.
Strip links out of the level description on the checkout page in Paid Memberships Pro
This file contains hidden or 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
/* | |
Strip links out of the level description on the checkout page. | |
Add this code to a custom plugin. | |
*/ | |
function pmpro_level_description_on_checkout_page( $description ) { | |
global $pmpro_pages; | |
if( is_page( $pmpro_pages['checkout'] ) ) { | |
$description = strip_tags( $description ); | |
} | |
return $description; | |
} | |
add_filter( 'pmpro_level_description', 'pmpro_level_description_on_checkout_page' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment