for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* WooCommerce Addons filters and functions
*
* @package lsx
* @subpackage woocommerce
*/
* WooCommerce Order Delivery Date
if ( ! function_exists( 'wc_od_get_delivery_date_field_args' ) ) {
* Change the arguments for the checkout delivery date field.
* @param $args array
* @return array
function lsx_wc_delivery_date_args( $args = array(), $context ) {
if ( 'checkout' === $context ) {
$args[] = _x( 'Date', 'Delivery date checkout field label', 'lsx' );
}
return $args;
add_action( 'wc_od_delivery_date_field_args', 'lsx_wc_delivery_date_args', 10, 2 );