title: How to edit Woocommerce Recent Products Shortcode so that it only show products published in the last 15 days?
body: <p>I'd like to edit the WooCommerce Recent Products Shortcode so that it limits the query to products published in the last 15 days. I'm not sure how to do that. Here is the code for the shortcode:</p>
  
  <pre><code>/**
   * Recent Products shortcode
   *
   * @param array $atts
   * @return string
   */
  public static function recent_products( $atts ) {
      global $woocommerce_loop;
  
      $atts = shortcode_atts( array(
          'per_page'  =&gt; '12',
          'columns'   =&gt; '4',
          'orderby'   =&gt; 'date',
          'order'     =&gt; 'desc'
      ), $atts );
  
      $meta_query = WC()-&gt;query-&gt;get_meta_query();
  
      $args = array(
          'post_type'             =&gt; 'product',
          'post_status'           =&gt; 'publish',
          'ignore_sticky_posts'   =&gt; 1,
          'posts_per_page'        =&gt; $atts['per_page'],
          'orderby'               =&gt; $atts['orderby'],
          'order'                 =&gt; $atts['order'],
          'meta_query'            =&gt; $meta_query
      );
  
      ob_start();
  
      $products = new WP_Query( apply_filters( 'woocommerce_shortcode_products_query', $args, $atts ) );
  
      $columns = absint( $atts['columns'] );
      $woocommerce_loop['columns'] = $columns;
  
      if ( $products-&gt;have_posts() ) : ?&gt;
  
          &lt;?php woocommerce_product_loop_start(); ?&gt;
  
              &lt;?php while ( $products-&gt;have_posts() ) : $products-&gt;the_post(); ?&gt;
  
                  &lt;?php wc_get_template_part( 'content', 'product' ); ?&gt;
  
              &lt;?php endwhile; // end of the loop. ?&gt;
  
          &lt;?php woocommerce_product_loop_end(); ?&gt;
  
      &lt;?php endif;
  
      wp_reset_postdata();
  
      return '&lt;div class="woocommerce columns-' . $columns . '"&gt;' . ob_get_clean() . '&lt;/div&gt;';
  }
  </code></pre>
  
  <p>I am thinking that I need to somehow retrieve the publish date for the posts in the loop, put that in a variable, and add something to the while that checks to see if that variable is less than 15 days old? These steps are out of my ability. </p>