@@ -10,35 +10,35 @@ |
||
| 10 | 10 | * WooCommerce Order Delivery Date |
| 11 | 11 | */ |
| 12 | 12 | if ( function_exists( 'wc_od_get_delivery_date_field_args' ) ) { |
| 13 | - /** |
|
| 14 | - * Change the arguments for the checkout delivery date field. |
|
| 15 | - * |
|
| 16 | - * @package lsx |
|
| 17 | - * @subpackage woocommerce |
|
| 18 | - * @param $args array |
|
| 19 | - * @return array |
|
| 20 | - */ |
|
| 21 | - function lsx_wc_delivery_date_args( $args = array(), $context ) { |
|
| 22 | - if ( 'checkout' === $context ) { |
|
| 23 | - $args['label'] = _x( 'Date', 'Delivery date checkout field label', 'lsx' ); |
|
| 24 | - } |
|
| 25 | - return $args; |
|
| 26 | - } |
|
| 27 | - add_action( 'wc_od_delivery_date_field_args', 'lsx_wc_delivery_date_args', 10, 2 ); |
|
| 13 | + /** |
|
| 14 | + * Change the arguments for the checkout delivery date field. |
|
| 15 | + * |
|
| 16 | + * @package lsx |
|
| 17 | + * @subpackage woocommerce |
|
| 18 | + * @param $args array |
|
| 19 | + * @return array |
|
| 20 | + */ |
|
| 21 | + function lsx_wc_delivery_date_args( $args = array(), $context ) { |
|
| 22 | + if ( 'checkout' === $context ) { |
|
| 23 | + $args['label'] = _x( 'Date', 'Delivery date checkout field label', 'lsx' ); |
|
| 24 | + } |
|
| 25 | + return $args; |
|
| 26 | + } |
|
| 27 | + add_action( 'wc_od_delivery_date_field_args', 'lsx_wc_delivery_date_args', 10, 2 ); |
|
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | if ( function_exists( 'wc_od_order_delivery_details_args' ) ) { |
| 31 | - /** |
|
| 32 | - * Change the title of the shipping and delivery title. |
|
| 33 | - * |
|
| 34 | - * @package lsx |
|
| 35 | - * @subpackage woocommerce |
|
| 36 | - * @param $args array |
|
| 37 | - * @return array |
|
| 38 | - */ |
|
| 39 | - function lsx_wc_delivery_details_args( $args = array() ) { |
|
| 40 | - $args['title'] = _x( 'Collection or Delivery Time-slot', 'Delivery date title on checkout', 'lsx' ); |
|
| 41 | - return $args; |
|
| 42 | - } |
|
| 43 | - add_action( 'wc_od_order_delivery_details_args', 'lsx_wc_delivery_details_args', 10, 1 ); |
|
| 31 | + /** |
|
| 32 | + * Change the title of the shipping and delivery title. |
|
| 33 | + * |
|
| 34 | + * @package lsx |
|
| 35 | + * @subpackage woocommerce |
|
| 36 | + * @param $args array |
|
| 37 | + * @return array |
|
| 38 | + */ |
|
| 39 | + function lsx_wc_delivery_details_args( $args = array() ) { |
|
| 40 | + $args['title'] = _x( 'Collection or Delivery Time-slot', 'Delivery date title on checkout', 'lsx' ); |
|
| 41 | + return $args; |
|
| 42 | + } |
|
| 43 | + add_action( 'wc_od_order_delivery_details_args', 'lsx_wc_delivery_details_args', 10, 1 ); |
|
| 44 | 44 | } |
@@ -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 | * Change the arguments for the checkout delivery date field. |
| 15 | 15 | * |
@@ -18,16 +18,16 @@ discard block |
||
| 18 | 18 | * @param $args array |
| 19 | 19 | * @return array |
| 20 | 20 | */ |
| 21 | - function lsx_wc_delivery_date_args( $args = array(), $context ) { |
|
| 22 | - if ( 'checkout' === $context ) { |
|
| 23 | - $args['label'] = _x( 'Date', 'Delivery date checkout field label', 'lsx' ); |
|
| 21 | + function lsx_wc_delivery_date_args($args = array(), $context) { |
|
| 22 | + if ('checkout' === $context) { |
|
| 23 | + $args['label'] = _x('Date', 'Delivery date checkout field label', 'lsx'); |
|
| 24 | 24 | } |
| 25 | 25 | return $args; |
| 26 | 26 | } |
| 27 | - add_action( 'wc_od_delivery_date_field_args', 'lsx_wc_delivery_date_args', 10, 2 ); |
|
| 27 | + add_action('wc_od_delivery_date_field_args', 'lsx_wc_delivery_date_args', 10, 2); |
|
| 28 | 28 | } |
| 29 | 29 | |
| 30 | -if ( function_exists( 'wc_od_order_delivery_details_args' ) ) { |
|
| 30 | +if (function_exists('wc_od_order_delivery_details_args')) { |
|
| 31 | 31 | /** |
| 32 | 32 | * Change the title of the shipping and delivery title. |
| 33 | 33 | * |
@@ -36,9 +36,9 @@ discard block |
||
| 36 | 36 | * @param $args array |
| 37 | 37 | * @return array |
| 38 | 38 | */ |
| 39 | - function lsx_wc_delivery_details_args( $args = array() ) { |
|
| 40 | - $args['title'] = _x( 'Collection or Delivery Time-slot', 'Delivery date title on checkout', 'lsx' ); |
|
| 39 | + function lsx_wc_delivery_details_args($args = array()) { |
|
| 40 | + $args['title'] = _x('Collection or Delivery Time-slot', 'Delivery date title on checkout', 'lsx'); |
|
| 41 | 41 | return $args; |
| 42 | 42 | } |
| 43 | - add_action( 'wc_od_order_delivery_details_args', 'lsx_wc_delivery_details_args', 10, 1 ); |
|
| 43 | + add_action('wc_od_order_delivery_details_args', 'lsx_wc_delivery_details_args', 10, 1); |
|
| 44 | 44 | } |