Created
March 27, 2024 06:58
-
-
Save JarrydLong/6c4bb9a110ad9996daa5a242e81a2a0d to your computer and use it in GitHub Desktop.
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
<?php //do not copy | |
function mypmpro_remove_level_will_be_removed_text($translated_text, $text, $domain) { | |
if( $domain == "paid-memberships-pro" ) { | |
if( $text == "Your current membership level of %s will be removed when you complete your purchase." ) { | |
$translated_text = ""; | |
} | |
} | |
return $translated_text; | |
} | |
add_filter( 'gettext', 'mypmpro_remove_level_will_be_removed_text', 20, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment