rules = new Hidexo_Lite_Rules(); $this->settings = new Hidexo_Lite_Settings(); new Hidexo_Lite_REST_API( $this->rules, $this->settings ); new Hidexo_Lite_Cache(); new Hidexo_Lite_Picker(); new Hidexo_Lite_Frontend( $this->rules ); if ( is_admin() ) { new Hidexo_Lite_Admin( $this->rules, $this->settings ); } /** * Fires once Hidexo Lite is loaded. Add-ons can hook here. * * @param Hidexo_Lite_Plugin $plugin Plugin instance. */ do_action( 'hidexo_lite_loaded', $this ); } /** * Capability required to manage rules. * * @return string */ public static function capability() { return (string) apply_filters( 'hidexo_lite_capability', 'manage_options' ); } /** * Activation callback. */ public static function activate() { update_option( 'hidexo_lite_version', HIDEXO_LITE_VERSION, false ); // Existing rules and settings are intentionally left untouched. } }