_path = $this->_slug . '/php/AdapterAddOn.php'; $this->_title = __( 'Adapter Gravity Add On', 'adapter-gravity-add-on' ); $this->_short_title = __( 'Adapter Add On', 'adapter-gravity-add-on' ); parent::__construct(); } /** * Statically gets the instance of this add-on. */ public static function get_instance(): AdapterAddOn { static $instance; if ( ! $instance ) { $instance = new AdapterAddOn(); } return $instance; } /** * Adds the plugin actions. */ public function init(): void { $email_setting = EmailSettingFactory::create(); $email_setting->init(); ( EmailFormFactory::create( $email_setting ) )->init(); parent::init(); } }