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 | |
/** | |
* Add This whole code in working theme functions.php inside php tag to alter woocommerce native positions | |
* Theme: https://themeforest.net/item/eva-responsive-woocommerce-theme/19331563 | |
* XL WooCommerce Sales Trigger Class Instance | |
*/ | |
add_action('wp', 'eva_wcst_modify_positions', 90); | |
if (!function_exists('eva_wcst_modify_positions')) { |
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 This whole code in working theme functions.php inside php tag to alter woocommerce native positions | |
* Theme: https://themeforest.net/item/betheme-responsive-multipurpose-wordpress-theme/7758048 | |
* XL WooCommerce Sales Trigger Class Instance | |
*/ | |
add_action('wp', 'betheme_wcst_modify_positions', 90); | |
if (!function_exists('betheme_wcst_modify_positions')) { | |
function betheme_wcst_modify_positions() { | |
if (class_exists('WCST_Core')) { |
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 | |
/** | |
* Adding hook to hide coupon's success message by finale plugin | |
*/ | |
add_action('plugins_loaded', 'wcct_hide_coupon_success',2); | |
if(!function_exists('wcct_hide_coupon_success')) { | |
/** | |
* hooked over `plugins_loaded` |
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 | |
/** | |
* Add This whole code in working theme functions.php inside php tag to alter woocommerce native positions | |
* Theme: https://themeforest.net/item/merchandiser-ecommerce-wordpress-theme-for-woocommerce/15791151 | |
* Finale: WooCommerce Sales Countdown Timer & Discount Plugin | |
*/ | |
add_action('wp', 'merchandiser_wcct_modify_positions', 90); | |
if (!function_exists('merchandiser_wcct_modify_positions')) { |
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 | |
/** | |
* Add This whole code in working theme functions.php inside php tag to alter woocommerce native positions | |
* Theme: Oxygen https://themeforest.net/item/oxygen-woocommerce-wordpress-theme/7851484 | |
* XL WooCommerce Sales Trigger Class Instance | |
*/ | |
add_action('wp', 'oxygen_wcst_modify_positions', 90); | |
if (!function_exists('oxygen_wcst_modify_positions')) { |
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 | |
/** | |
* Add This whole code in working theme functions.php inside php tag to alter woocommerce native positions | |
* Site: nutrabay.com | |
* XL WooCommerce Sales Trigger Class Instance | |
*/ | |
add_action('wp', 'theme_wcst_modify_positions', 90); | |
if (!function_exists('theme_wcst_modify_positions')) { | |
function theme_wcst_modify_positions() { |
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 | |
/** | |
* Handling with super cache plugin | |
*/ | |
add_action('the_post', 'wcct_handle_transients_on_product_page',1); | |
function wcct_handle_transients_on_product_page($post) { | |
if(!defined("WCCT_SLUG")) { | |
return; |
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 | |
/** | |
* Call Countdown Timer in product loop below product name using shortcode. | |
* This inherit product's timer settings and follow campaign rules. | |
*/ | |
add_action('woocommerce_after_shop_loop_item', 'wcct_shop_loop_timer_display', 5); | |
if (!function_exists('wcct_shop_loop_timer_display')) { | |
function wcct_shop_loop_timer_display() { | |
echo do_shortcode('[finale_countdown_timer skip_rules="no"]'); |
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 | |
add_action('admin_menu', 'xl_license_notice_remove'); | |
function xl_license_notice_remove() { | |
global $wp_filter; | |
if ( ! isset( $wp_filter['admin_init'] ) ) { | |
return; | |
} |
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 | |
/** | |
* Compatibility with WPML | |
*/ | |
if (function_exists('icl_t')) { | |
$translated_google_map_error_text = icl_t('admin_texts_xlwcty_global_settings', '[xlwcty_global_settings]google_map_error_txt', $options['google_map_error_txt']); | |
$options['google_map_error_txt'] = $translated_google_map_error_text; | |
} |