How Do I Change the Recurring Payments Text?

If you want to change the text that displays with the price when using Recurring Payments, there isn't a setting to do this.  You would, instead, need to add the following code to the bottom of your child theme's functions.php file (before the closing ?> if there is one):

function my_translated_text_strings( $translated_text, $untranslated_text, $domain ) {
    $translated_text = $untranslated_text;
    if ( 'LION' === $domain || 'it-l10n-exchange-addon-membership' === $domain || 'it-l10n-exchange-addon-recurring-payments' === $domain ) {
        switch ( $untranslated_text ) {
            case 'every %s' :
                $translated_text = 'Custom Text Here';
            break;
            case 'every %d %s' :
                $translated_text = 'Custom Text Here';
            break;
            case '(after %d %s free)' :
                $translated_text = 'Custom Text Here';
            break;
            case ' %s %s free, then regular price' :
                $translated_text = 'Custom Text Here';
            break;
            case '1 %s free' :
                $translated_text = 'Custom Text Here';
            break;
            case '%d %ss free' :
                $translated_text = 'Custom Text Here';
            break;
            case '(after %s)' :
                $translated_text = 'Custom Text Here';
            break;
            case ' %s upgrade credit, then regular price' :
                $translated_text = 'Custom Text Here';
            break;
            case ' %s %s free, then regular price' :
                $translated_text = 'Custom Text Here';
            break;
        }
    }
    return $translated_text;
}
add_filter( 'gettext', 'my_translated_text_strings', 10, 3 );
add_filter( 'ngettext', 'my_translated_text_strings', 10, 3 );
Have more questions? Submit a request
Powered by Zendesk