Change the wording in the donors choice selection checkbox in GiveWP

Change the wording in the donors choice selection checkbox in GiveWP on child sites.

Snippet Type

Execute on Child Sites

Snippet

function my_give_recurring_donor_choice_text_switcher( $translations, $text, $domain ) {
	// changes the "every" text in the "Make this donation every [month/week/day]
	// This section must be translated BEFORE the next one, so that the translated string is passed into the next string.
	if ( $domain == 'give-recurring' && $text == 'Every' ) {
		$translations = __( 'YOUR TEXT HERE', 'give' );
	}

	// changes the "Make this Donation [monthly/weekly/daily]"
	// text for a donor's choice recurring checkbox
	if ( $domain == 'give-recurring' && $translations == 'Make this donation %1$s' ) {
		$translations = __( 'YOUR TEXT HERE %1$s', 'give-recurring' );
	}

	return $translations;
}
add_filter( 'gettext', 'my_give_recurring_donor_choice_text_switcher', 10, 3 );

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.