title: Change default sorting order for specific woocommerce category archive
body: <p>In Woocommerce, I am trying to change the default sorting order of the <strong>"New"</strong> Products category archive page decreasing by date order, so that the newest additions are listed first. </p>
  
  <p>I have tried 2 different code snippets. Both change the default order but are showing the oldest products first. </p>
  
  <p>I have changed the ASC to DESC in both snippets and both provided no change to the sort order. </p>
  
  <p>I am VERY new to coding and appreciate any help with where I'm going wrong.</p>
  
  <p>First attempt:</p>
  
  <pre><code>add_filter( 'woocommerce_default_catalog_orderby', 'custom_default_catalog_orderby' );
  
  function custom_default_catalog_orderby() {
  
      $product_category = array( 'new' );
  
      if ( is_product_category( $product_category ) ) {
          return 'date_desc';
      }
  }
  </code></pre>
  
  <p>The second attempt:</p>
  
  <pre><code>add_filter( 'woocommerce_get_catalog_ordering_args', 'custom_catalog_ordering_args', 20, 1 );
  function custom_catalog_ordering_args( $args ) {
      $product_category = 'new'; // &lt;== HERE define your product category
  
      // Only for defined product category archive page
      if( ! is_product_category($product_category) ) return $args;
  
      // Set default ordering to 'date ID', so "Newness"
      $args['orderby'] = 'date ID';
  
      if( $args['orderby'] == 'date ID' )
          $args['order'] = 'DESC'; // Set order by DESC
  
      return $args;
  }
  </code></pre>
  
  <p>Any Help is appreciated.</p>