/** return single instance of class
  * @author YIThemes
  * @since 2.0.0
  * @return YITH_WC_Audio_Video
  */
 public static function get_instance()
 {
     if (is_null(self::$_instance)) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
Esempio n. 2
0
 /**
  * Unique access to instance of YITH_WC_Audio_Video class
  *
  * @return  YITH_WC_Audio_Video
  * @since 1.1.4
  */
 function YITH_Featured_Audio_Video_Init()
 {
     load_plugin_textdomain('yith-woocommerce-featured-video', false, dirname(plugin_basename(__FILE__)) . '/languages/');
     require_once YWCFAV_INC . 'functions.yith-wc-featured-audio-video.php';
     require_once YWCFAV_INC . 'classes/class.yith-woocommerce-audio-video-content.php';
     global $YITH_Featured_Audio_Video;
     $YITH_Featured_Audio_Video = YITH_WC_Audio_Video::get_instance();
 }