Viewing 2 replies - 1 through 2 (of 2 total)
  • here’s an example that removes the fields from all templates. uncomment the two lines to remove them only from the receipt. place the code in the functions.php:

    function example_remove_order_info_fields( $fields, $order ) {
    	//if( wcdn_get_template_type() == 'receipt' ) {
    		unset( $fields['billing_email'] );
    		unset( $fields['billing_phone'] );
    	//}
    
    	return $fields;
    }
    add_filter( 'wcdn_order_info_fields', 'example_remove_order_info_fields', 10, 2 );
    Thread Starter timit

    (@timit)

    perfect!!

    many thanks!

    Serge

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove Email and Phone Number’ is closed to new replies.