• Resolved connormagyar

    (@connormagyar)


    I can’t change the opt-in label on my checkout page. Need it to not read “SIGN ME UP TO RECEIVE MARKETING EMAILS (OPTIONAL)”

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Constant Contact

    (@constantcontact)

    Hey @connormagyar give this filter a try. Hopefully your a little comfortable with code, or someone is around who can help with that.

    function connormagyar_override_ctct_label( $args, $key, $value ) {
    	if ( 'customer_newsletter_opt_in' !== $key ) {
    		return $args;
    	}
    
    	$args['label'] = 'SOME CUSTOM LABEL';
    
    	return $args;
    }
    add_filter( 'woocommerce_form_field_args', 'connormagyar_override_ctct_label', 10, 3 );
    

    set the “SOME CUSTOM LABEL” to read whatever you want.

    Thread Starter connormagyar

    (@connormagyar)

    This works perfectly! Thank you so much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change opt-in message at checkout’ is closed to new replies.