Skip to content

Instantly share code, notes, and snippets.

  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save dparker1005/e8c8c27b45fe78b370112d8425d50b33 to your computer and use it in GitHub Desktop.
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.
<?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