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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Scripts & Iframes</title> | |
<!-- Google Analytics - Start --> | |
<script> | |
(function (i, s, o, g, r, a, m) { | |
i['GoogleAnalyticsObject'] = r; | |
i[r] = i[r] || function () { |
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 //Please do not copy this line. | |
add_filter('wt_facebook_product_description_mode', 'wt_facebook_product_catalog_description_mode'); | |
function wt_facebook_product_catalog_description_mode($mode='long') { | |
$mode = 'short'; // Available values for the description mode is 'short' and 'long' | |
return $mode; | |
} |
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 // Do not copy this line | |
// Alter CSV header | |
add_filter('hf_alter_csv_header', 'hf_alter_order_csv_header', 10, 2); | |
function hf_alter_order_csv_header($export_columns, $max_line_items) { | |
$gift_card_details = array('gift_card', 'gift_card_amount'); | |
array_splice($export_columns, 14, 0, $gift_card_details); | |
return $export_columns; |
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 // Do not copy this line. | |
add_filter('wt_fb_sync_product_retailer_id', 'wt_fb_sync_product_retailer_id', 10, 2); | |
function wt_fb_sync_product_retailer_id($fb_retailer_id, $product) { | |
$fb_retailer_id = $product->get_sku() ? $product->get_sku() : 'wc_post_id_' . $product->get_id(); | |
return $fb_retailer_id; | |
} |
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 // Please do not copy this line | |
add_filter('woocommerce_csv_product_export_args', 'wt_woocommerce_csv_product_export_args', 10, 1); | |
function wt_woocommerce_csv_product_export_args($args) { | |
$args['suppress_filters'] = true; | |
return $args; | |
} |
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 // Do not copy this line. | |
add_filter('wt_iew_folder_import_fetched_files','wt_import_latest_file',10,3); | |
if(!function_exists('wt_import_latest_file')){ | |
function wt_import_latest_file($server_csv_files,$ftp_conn,$remote_file){ | |
rsort($server_csv_files); | |
return array($server_csv_files[0]); |
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 // Please do not copy this line | |
add_filter('hf_export_image_metadata_flag','__return_false'); | |
add_filter('wt_batch_product_export_row_data','wt_batch_product_export_row_data_img',10,2); | |
function wt_batch_product_export_row_data_img($row, $product){ | |
if(isset($row['images']) && !empty($row['images'])){ | |
$row['images'] = str_replace('|', ',', $row['images']); |
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 // Do not copy this line | |
add_filter('sanitize_file_name', 'sanitize_file_name_wt', 99999, 2); | |
function sanitize_file_name_wt($filename, $filename_raw) { | |
if (strpos($filename, 'temp_') !== false) { | |
return $filename_raw; | |
} | |
return $filename; |
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 // Do not copy this line | |
add_filter('wt_csv_raeder_csv_escape', 'wt_csv_raeder_csv_escape'); | |
function wt_csv_raeder_csv_escape($csv_escape){ | |
return '\\'; | |
} |
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 // Please do not copy this line | |
add_action('admin_init', 'wt_remove_all_post_insert_actions'); | |
function wt_remove_all_post_insert_actions() { | |
$actions = array( | |
'save_post_product', // WooCommerce product insert | |
'wp_insert_post', | |
'save_post', |
NewerOlder