/**
  * update_products_price_by_country_product_saved.
  *
  * @version 2.5.3
  * @since   2.5.3
  */
 function update_products_price_by_country_product_saved($post_id, $post)
 {
     wcj_update_products_price_by_country_for_single_product($post_id);
 }
 /**
  * wcj_update_products_price_by_country - all products.
  *
  * @version 2.5.3
  * @since   2.5.3
  */
 function wcj_update_products_price_by_country()
 {
     $offset = 0;
     $block_size = 96;
     while (true) {
         $args = array('post_type' => 'product', 'post_status' => 'any', 'posts_per_page' => $block_size, 'offset' => $offset, 'orderby' => 'title', 'order' => 'ASC');
         $loop = new WP_Query($args);
         if (!$loop->have_posts()) {
             break;
         }
         while ($loop->have_posts()) {
             $loop->the_post();
             $product_id = $loop->post->ID;
             wcj_update_products_price_by_country_for_single_product($product_id);
         }
         $offset += $block_size;
     }
     wp_reset_postdata();
 }