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
| <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 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
| <script> | |
| function getCookie(name) { | |
| var re = new RegExp(name + "=([^;]+)"); | |
| var value = re.exec(document.cookie); | |
| return (value != null) ? unescape(value[1]) : 'no'; | |
| } | |
| if (getCookie('cky-consent') == 'yes' && getCookie('cookieyes-analytics') == 'yes') { |
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 or modify WooCommerce States | |
| */ | |
| add_filter( 'woocommerce_states', 'webtoffee_woocommerce_states' ); | |
| function webtoffee_woocommerce_states( $states ) { | |
| $states['XX'] = array( | |
| 'XX1' => 'State 1', |
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( 'wp_footer', 'webtoffee_checkout_shipping_filter_it_states' ); | |
| function webtoffee_checkout_shipping_filter_it_states() { | |
| if ( ! is_checkout() ) { | |
| return; | |
| } | |
| ?> | |
| <script> | |
| jQuery(document).ready(function($) { |
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( 'wp_footer', 'webtoffee_checkout_shipping_filter_it_states' ); | |
| function webtoffee_checkout_shipping_filter_it_states() { | |
| if ( ! is_checkout() ) { | |
| return; | |
| } | |
| ?> | |
| <script> | |
| jQuery(document).ready(function($) { |
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('wt_user_registration_email', 'wt_user_registration_email_callback'); | |
| function wt_user_registration_email_callback($mail_attrs) { | |
| //$mail_attrs['body'] | |
| $mail_attrs['body'] = 'Custom email body'; | |
| return $mail_attrs; | |
| } |
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 wt_pipe_cron_ended(){ | |
| $email = 'asd@example.org, ert@example.org'; | |
| wp_mail( $email, "Product Auto Import Export", 'Product scheduled import completed.' ); | |
| } | |
| add_action('wt_ier_scheduled_action_finished', 'wt_pipe_cron_ended'); |
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 wt_multi_csv_url_import_array(){ | |
| return array( | |
| 'http://example.com/pro/url_test/Sample%20Products.csv', | |
| 'http://example.com/pro/url_test/Product_WooCommerce_Sample_CSV.csv' | |
| ); | |
| } | |
| add_filter('hf_multi_csv_url_import_array','wt_multi_csv_url_import_array'); |
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
| <script> | |
| function CookieLawInfo_Accept_Callback() | |
| { | |
| if (CLI.consent.non_necessary) | |
| { | |
| dataLayer.push({'event': 'cli_cookieconsent_non_necessary'}); | |
| } | |
| if (CLI.consent.analytics) | |
| { | |
| dataLayer.push({'event': 'cli_cookieconsent_analytics'}); |
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
| <script> | |
| function CookieLawInfo_Accept_Callback() | |
| { | |
| if (CLI.consent.non_necessary) | |
| { | |
| // Hotjar Analytics | |
| (function (h, o, t, j, a, r) { | |
| h.hj = h.hj || function () { | |
| (h.hj.q = h.hj.q || []).push(arguments) | |
| }; |