title: Update programmatically date modified on Woocommerce Orders
body: <p>I'm getting a list of pending orders, grabbing some data and figuring if the post was last edited within 2 weeks.  If not I'm doing some stuff and then trying to set the modified date to today, the update_post_meta isn't working, it does nothing.  All of my declared vars at the top work and I am getting inside the if statement.</p>
  
  <pre><code>    $customer_orders = wc_get_orders(array(
          'limit'    =&gt; -1,
          'status'   =&gt; array('wc-pending')
      ) );
  
      foreach($customer_orders as $order) {
  
          $orderData = $order-&gt;get_data();
          $orderId = $orderData['id'];
          $orderDate = $orderData['date_modified']-&gt;date('Y-m-d H:i:s');
          $orderDatePlus2Weeks = new DateTime($orderDate);
          $orderDatePlus2Weeks-&gt;add(new DateInterval('P14D'));
          $orderDatePlus2Weeks = $orderDatePlus2Weeks-&gt;format('Y-m-d H:i:s');
          $today = date("Y-m-d H:i:s");
  
          if($orderDatePlus2Weeks &lt;= $today){
              echo 'THIS ORDER NEEDS UPDATED';
              // Do Some Stuff
              update_post_meta($orderId, 'date_modified', $today);
          }else{
              echo 'THIS ORDER DOES NOT NEED UPDATED';
          }
      }
  </code></pre>