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
DELETE FROM {$wpdb->prefix}followup_email_orders WHERE is_sent = 0 |
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
DELETE FROM {$wpdb->prefix}followup_email_orders WHERE email_id=12345 AND is_sent=0 |
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
function custom_shipping_fields( $fields, $country ) { | |
$fields['shipping_test'] = array( | |
'label' => 'Test', | |
'placeholder' => 'Test' | |
); | |
return $fields; | |
} | |
add_filter( 'woocommerce_shipping_fields', 'custom_shipping_fields', 10, 2 ); | |
function display_custom_shipping_fields( $formatted_address, $address ) { |
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
add_action( 'fue_before_variable_replacements', 'fue_register_variable_replacements', 10, 4); | |
function fue_register_variable_replacements( $var, $email_data, $fue_email, $queue_item ) { | |
$variables = array( | |
'referral_code' => '' | |
); | |
if ( isset( $email_data['test'] ) && $email_data['test'] ) { | |
$variables['referral_code'] = '13221'; |
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
add_filter( 'fue_variable_replacements', 'fue_register_variable_replacements', 10, 3); | |
function fue_register_variable_replacements( $variables, $queue_item, $fue_email ) { | |
$license_key = ''; | |
foreach ( $licenses as $license) { | |
if ( $license->software_product_id == 'the_matching_product_id' ) { | |
$license_key = $license->licence_key; | |
break; | |
} |
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 | |
/** | |
* Customer new account email | |
* | |
* @author WooThemes | |
* @package WooCommerce/Templates/Emails | |
* @version 1.6.4 | |
*/ | |
// load customer data and user email into email template |