@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | /** |
| 10 | 10 | * WooCommerce Order Delivery Date |
| 11 | 11 | */ |
| 12 | -if ( function_exists( 'wc_od_get_delivery_date_field_args' ) ) { |
|
| 12 | +if (function_exists('wc_od_get_delivery_date_field_args')) { |
|
| 13 | 13 | |
| 14 | 14 | /** |
| 15 | 15 | * Change the arguments for the checkout delivery date field. |
@@ -19,12 +19,12 @@ discard block |
||
| 19 | 19 | * @param $args array |
| 20 | 20 | * @return array |
| 21 | 21 | */ |
| 22 | - function lsx_wc_delivery_date_args( $args = array(), $context ) { |
|
| 23 | - if ( 'checkout' === $context ) { |
|
| 24 | - $args['label'] = _x( 'Date', 'Delivery date checkout field label', 'lsx' ); |
|
| 22 | + function lsx_wc_delivery_date_args($args = array(), $context) { |
|
| 23 | + if ('checkout' === $context) { |
|
| 24 | + $args['label'] = _x('Date', 'Delivery date checkout field label', 'lsx'); |
|
| 25 | 25 | } |
| 26 | 26 | return $args; |
| 27 | 27 | } |
| 28 | - add_action( 'wc_od_delivery_date_field_args', 'lsx_wc_delivery_date_args', 10, 2 ); |
|
| 28 | + add_action('wc_od_delivery_date_field_args', 'lsx_wc_delivery_date_args', 10, 2); |
|
| 29 | 29 | |
| 30 | 30 | } |