コード例 #1
0
 /**
  * Main WC_Crm_Customer Instance
  *
  * Ensures only one instance of WC_Crm_Customer is loaded or can be loaded.
  *
  * @since 2.4.3
  * @static
  * @return WC_Shipping Main instance
  */
 public static function instance()
 {
     if (is_null(self::$_instance)) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
コード例 #2
0
 /**
  * Get Customer Class.
  *
  * @return WC_Crm_Customer
  */
 public function customer()
 {
     return WC_Crm_Customer::instance();
 }