/**
  * add_mini_cart_custom_info.
  *
  * @version 2.4.6
  */
 function add_mini_cart_custom_info()
 {
     $current_filter = current_filter();
     $current_filter_priority = wcj_current_filter_priority();
     $total_number = apply_filters('booster_get_option', 1, get_option('wcj_mini_cart_custom_info_total_number', 1));
     for ($i = 1; $i <= $total_number; $i++) {
         if ('' != get_option('wcj_mini_cart_custom_info_content_' . $i) && $current_filter === get_option('wcj_mini_cart_custom_info_hook_' . $i, 'woocommerce_after_mini_cart') && $current_filter_priority == get_option('wcj_mini_cart_custom_info_priority_' . $i, 10)) {
             echo do_shortcode(get_option('wcj_mini_cart_custom_info_content_' . $i));
         }
     }
 }
 /**
  * add_product_custom_info.
  *
  * @version 2.4.6
  */
 function add_product_custom_info()
 {
     $current_filter = current_filter();
     $current_filter_priority = wcj_current_filter_priority();
     $single_or_archive_array = array('single', 'archive');
     foreach ($single_or_archive_array as $single_or_archive) {
         $default_hook = 'single' === $single_or_archive ? 'woocommerce_after_single_product_summary' : 'woocommerce_after_shop_loop_item_title';
         for ($i = 1; $i <= apply_filters('booster_get_option', 1, get_option('wcj_product_custom_info_total_number_' . $single_or_archive, 1)); $i++) {
             if ('' != get_option('wcj_product_custom_info_content_' . $single_or_archive . '_' . $i) && $current_filter === get_option('wcj_product_custom_info_hook_' . $single_or_archive . '_' . $i, $default_hook) && $current_filter_priority == get_option('wcj_product_custom_info_priority_' . $single_or_archive . '_' . $i, 10)) {
                 $products_to_exclude = get_option('wcj_product_custom_info_products_to_exclude_' . $single_or_archive . '_' . $i);
                 $products_to_include = get_option('wcj_product_custom_info_products_to_include_' . $single_or_archive . '_' . $i);
                 $product_id = get_the_ID();
                 if ((empty($products_to_exclude) || !in_array($product_id, $products_to_exclude)) && (empty($products_to_include) || in_array($product_id, $products_to_include))) {
                     echo do_shortcode(get_option('wcj_product_custom_info_content_' . $single_or_archive . '_' . $i));
                 }
             }
         }
     }
 }
 /**
  * add_files_upload_form_to_checkout_frontend_all.
  *
  * @version 2.5.2
  * @since   2.5.2
  */
 function add_files_upload_form_to_checkout_frontend_all($is_direct_call = false)
 {
     $html = '';
     $total_number = apply_filters('booster_get_option', 1, get_option('wcj_checkout_files_upload_total_number', 1));
     if (!$is_direct_call) {
         $current_filter = current_filter();
         $current_filter_priority = wcj_current_filter_priority();
     }
     for ($i = 1; $i <= $total_number; $i++) {
         $is_filter_ok = $is_direct_call ? true : $current_filter === get_option('wcj_checkout_files_upload_hook_' . $i, 'woocommerce_before_checkout_form') && $current_filter_priority == get_option('wcj_checkout_files_upload_hook_priority_' . $i, 10);
         if ('yes' === get_option('wcj_checkout_files_upload_enabled_' . $i, 'yes') && $is_filter_ok && $this->is_visible($i)) {
             $file_name = isset($_SESSION['wcj_checkout_files_upload_' . $i]) ? $_SESSION['wcj_checkout_files_upload_' . $i]['name'] : '';
             $html .= $this->get_the_form($i, $file_name);
         }
     }
     echo $html;
 }