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 | |
function move_gdpr_script() { | |
if (class_exists('Cookie_Law_Info')) { | |
if (!is_admin()) { | |
wp_dequeue_script('cookie-law-info'); | |
wp_enqueue_script('cookie-law-info', '', array('jquery'), false, true); | |
wp_dequeue_script('cookie-law-info-ccpa'); | |
wp_enqueue_script('cookie-law-info-ccpa', '', array('jquery', 'cookie-law-info'), false, true); | |
} |
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 | |
add_action('wp_footer', 'wt_cli_delay_cookie_banner', 10); | |
function wt_cli_delay_cookie_banner() | |
{ | |
if (class_exists('Cookie_Law_Info')) { | |
?> | |
<script> | |
jQuery(function() { | |
var timeDelay = 3000; //Time in milli seconds, 1000 ms = 1 second. |
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('wp_footer', 'wt_cli_add_href_to_links'); | |
function wt_cli_add_href_to_links() { | |
if (class_exists('Cookie_Law_Info')) { | |
?> | |
<script> | |
jQuery(function($) { | |
wt_cli_links = $('#cookie-law-info-bar a, #cliSettingsPopup a'); | |
wt_cli_links.each(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 // 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
<script async data-cookieyes="cookieyes-analytics" src="https://www.googletagmanager.com/gtag/js?id=UA-144842869-1"></script> | |
<script> | |
window.dataLayer = window.dataLayer || []; | |
function gtag(){dataLayer.push(arguments);} | |
gtag('js', new Date()); | |
gtag('config', 'UA-144842869-1'); | |
</script> |
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]); |
NewerOlder