Errors in code
-
Hello,
Please im not good in code but is this code correct for multiple gateways
function woa_date_order_hook( $old_date, $gateway, $mode ) { // For example, change date only for cheque. if ( 'paystack' == $gateway ) { if ( 'wallet == $gateway ) { $old_date = strtotime( 'today -5 days' ); } } return $old_date; } add_filter( 'woo_cao_date_order', 'woa_date_order_hook', 10, 3 );
Thanks
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Errors in code’ is closed to new replies.