add_action( ‘woocommerce_add_to_cart’, ‘pe_wc_cart_script’, 10, 6); add_action( ‘wp_enqueue_scripts’, ‘pe_wc_cart_ajax_script’ ); function pe_wc_cart_script( $cart_item_key, $product_id, …$rest_params ) { $browse_campaign_name = ‘Enter browse abandonment campaign name’; $cart_campaign_name = ‘Enter cart abandonment campaign name’; do_action(‘pe_wpcode_wc_cart_script’, $product_id, $browse_campaign_name, $cart_campaign_name); } function pe_wc_cart_ajax_script() { $browse_campaign_name =…Continue reading
add_action( ‘woocommerce_after_single_product’, ‘pe_wc_browse_script’ ); function pe_wc_browse_script() { $browse_campaign_name = ‘Enter browse abandonment campaign name’; do_action(‘pe_wpcode_wc_browse_script’, $browse_campaign_name ); }Continue reading
add_action( ‘edd_order_receipt_before_table’, ‘pe_edd_checkout_script’ ); function pe_edd_checkout_script($order) { $cart_campaign_name = ‘Enter cart abandonment campaign name’; do_action(‘pe_wpcode_edd_checkout_script’, $order, $cart_campaign_name); }Continue reading
add_action( ‘wp_enqueue_scripts’, ‘pe_edd_cart_script’ ); function pe_edd_cart_script() { $browse_campaign_name = ‘Enter browse abandonment campaign name’; $cart_campaign_name = ‘Enter cart abandonment campaign name’; do_action(‘pe_wpcode_edd_cart_script’, $browse_campaign_name, $cart_campaign_name); }Continue reading
add_action( ‘edd_after_download_content’, ‘pe_edd_browse_script’ ); function pe_edd_browse_script( $download_id ) { $browse_campaign_name = ‘Enter browse abandonment campaign name’; do_action(‘pe_wpcode_edd_browse_script’, $download_id, $browse_campaign_name); }Continue reading