Ejemplo n.º 1
0
 function __construct()
 {
     self::$file = plugin_dir_path(__FILE__);
     if (is_admin()) {
         $this->load_components('admin');
     }
     $this->load_components('render');
     // If GF User Registration Add-on exists
     $this->load_components('user-registration');
     $this->add_hooks();
     // Process hooks for addons that may or may not be present
     $this->addon_specific_hooks();
 }
Ejemplo n.º 2
0
 function __construct()
 {
     self::$instance =& $this;
     self::$file = plugin_dir_path(__FILE__);
     if (is_admin()) {
         $this->load_components('admin');
     }
     $this->load_components('render');
     $this->load_components('shortcode');
     $this->add_hooks();
     // Process hooks for addons that may or may not be present
     $this->addon_specific_hooks();
 }