Last active
October 4, 2018 07:41
-
-
Save AshlinRejo/0e555ea10d3c9e4967d8b5b65696d6c9 to your computer and use it in GitHub Desktop.
Custom code for Email customizer - woocommerce-local-pickup-time-select
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Custom code shortcode | |
* | |
* This template can be overridden by copying it to yourtheme/plugin-folder-name/woo_mail/custom_code.php. | |
* @var $order WooCommerce order | |
* @var $email_id WooCommerce email id (new_order, cancelled_order) | |
* @var $sent_to_admin WooCommerce email send to admin | |
* @var $plain_text WooCommerce email format | |
* @var $email WooCommerce email object | |
* @var $attr array custom code attributes | |
*/ | |
if ( ! defined( 'ABSPATH' ) ) { | |
exit; | |
} | |
$key = 'pickup_time';//Field name | |
if(isset($attr['type']) && $attr['type'] == $key){ | |
do_action( 'woocommerce_admin_order_data_after_billing_address', $order ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment