Exemplo n.º 1
0
 /**
  * Constructor
  *
  * @return mixed| YITH_WCBM_Admin | YITH_WCBM_Frontend
  * @since 1.0.0
  */
 public function __construct()
 {
     // Load Plugin Framework
     add_action('plugins_loaded', array($this, 'plugin_fw_loader'), 15);
     // Class admin
     if (is_admin() && (!isset($_REQUEST['action']) || isset($_REQUEST['action']) && $_REQUEST['action'] != 'yith_load_product_quick_view')) {
         YITH_WCBM_Admin();
     } else {
         YITH_WCBM_Frontend();
     }
 }
Exemplo n.º 2
0
 /**
  * Constructor
  *
  * @return mixed| YITH_WCBM_Admin | YITH_WCBM_Frontend
  * @since 1.0.0
  */
 public function __construct()
 {
     // Load Plugin Framework
     add_action('after_setup_theme', array($this, 'plugin_fw_loader'), 1);
     // Class admin
     if (is_admin()) {
         YITH_WCBM_Admin();
     } else {
         YITH_WCBM_Frontend();
     }
     /*
     if( get_option( 'yith-wcbm-enable' ) == 'yes' ) {
         YITH_WCBM_Frontend();
     }
     */
 }