Last active
August 24, 2017 14:59
Star
You must be signed in to star a gist
Changes the text that shows next to the Automatic Renewals checkbox. To edit text, change "NEW TEXT HERE" in the code and insert into a PMPro customizations plugin.
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 | |
add_filter( 'gettext', 'change_auto_renewal_checkbox_text', 20, 3 ); | |
/** | |
* @link http://codex.wordpress.org/Plugin_API/Filter_Reference/gettext | |
*/ | |
function change_auto_renewal_checkbox_text( $translated_text, $text, $domain ) { | |
switch ( $translated_text ) { | |
case 'Yes, renew at %s' : | |
$translated_text = __( 'NEW TEXT HERE', 'pmpro' ); | |
break; | |
} | |
return $translated_text; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment