/** * Init parts of the plugin that require certain dependencies that are * available as soon as "plugins_loaded" action is fired. */ public function pre_init() { $this->pre_init_build_constants(); $this->pre_init_build_options(); $this->pre_init_properties(); $this->pre_init_load_libraries(); $this->pre_init_update_plugin(); $this->pre_init_hooks(); // support installation and uninstallation $this->bridge->register_activation_hook($this->plugin_file, array($this, 'install')); $this->bridge->register_deactivation_hook($this->plugin_file, array($this, 'uninstall')); }