yit_datetime_to_timestamp

The YITH WooCommerce Compare yit datetime to timestamp function.

Description

yit_datetime_to_timestamp( $date ); 

Parameters (1)

0. $date
The date.

Usage

  1. if ( !function_exists( 'yit_datetime_to_timestamp' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'yith-woocommerce-compare/plugin-fw/yit-woocommerce-compatibility.php'; 
  3.  
  4. // The date. 
  5. $date = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = yit_datetime_to_timestamp($date); 
  9.  

Defined (1)

The function is defined in the following location(s).

/plugin-fw/yit-woocommerce-compatibility.php  
  1. function yit_datetime_to_timestamp( $date ) { 
  2.  
  3. if ( version_compare( WC()->version, '2.7.0', '<' ) ) { 
  4. $date = strtotime( $date ); 
  5.  
  6. return $date;