title: How can I set cart expiration in Woocommerce?
body: <p>I want to set 3 hours as expiration so I've tried with this <code>filter</code> but for me it doesn't work</p>
  
  <pre><code>if ( ! class_exists( 'WoocommerceLicenseAPI' ) ) {
      add_filter('wc_session_expiring', array('WoocommerceLicenseAPI', 'filter_ExtendSessionExpiring') );
  
      add_filter('wc_session_expiration' , array('WoocommerceLicenseAPI', 'filter_ExtendSessionExpired') );
  }
  static function filter_ExtendSessionExpiring($seconds) {
      return 60 * 60 * 3;
  }
  static function filter_ExtendSessionExpired($seconds) {
      return 60 * 60 * 3;
  }
  </code></pre>