This file contains 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
addnode=83.169.3.31 | |
addnode=82.226.138.81 | |
addnode=93.62.173.122 | |
addnode=94.23.253.228 | |
addnode=91.121.174.223 | |
addnode=188.120.246.137 | |
addnode=12.23.127.175 | |
addnode=99.243.145.178 | |
addnode=79.142.22.72 | |
addnode=198.23.159.10 |
This file contains 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 | |
//Display Fields | |
add_action( 'woocommerce_product_after_variable_attributes', 'variable_fields', 10, 3 ); | |
//JS to add fields for new variations | |
add_action( 'woocommerce_product_after_variable_attributes_js', 'variable_fields_js' ); | |
//Save variation fields | |
add_action( 'woocommerce_process_product_meta_variable', 'save_variable_fields', 10, 1 ); | |
/** |
This file contains 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
add_action('woocommerce_order_status_changed', 'send_hold_email'); | |
function send_hold_email($order_id) { | |
$order_data = new WC_Order($order_id); | |
if ($order_data->status=='on-hold') { | |
global $woocommerce; | |
$mailer = $woocommerce->mailer(); | |
$message = $mailer->wrap_message( | |
__( 'Order placed On-hold', 'woocommerce' ), |
This file contains 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 | |
add_action('woocommerce_order_status_changed', 'send_support_email'); | |
function send_support_email($order_id) { | |
$order_data = new WC_Order($order_id); | |
global $woocommerce; | |
$mailer = $woocommerce->mailer(); | |
if ($order_data->status=='cancelled') { | |
$to = $order_data->billing_first_name . ' <' . $order_data->billing_email . '>'; |
NewerOlder