• Resolved obertscloud

    (@obertscloud)


    I look for code to change but only changes back end, not front end on the form.
    this is not a translation, I always want to have a different button for example PAY NOW

    function my_give_text_switcher( $translations, $text, $domain ) {
    	// changes the "Donations" text in multiple places
    	if ( $domain == 'give' && $text == 'Donations' ) {
    		$translations = __( 'PAY NOW', '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 = __( 'PAY NOW %1$s', 'give-recurring' );
    	}
    
    	return $translations;
    }
    add_filter( 'gettext', 'my_give_text_switcher', 10, 3 );

    can you help thanks

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Changing DONATE NOW button’ is closed to new replies.