settings = Settings::getInstance(); $this->content = $content; $this->title = new Title($this->content, $this->settings); add_action('wp_enqueue_scripts', [$this, 'assets']); if ($this->content->isRestricted()) { if ($this->settings->rta) { add_action('wp_head', [$this, 'rta']); } if ($this->settings->preload) { new Preload($this->settings); } if ($this->settings->devTools) { new Interaction; } if ($this->settings->focus) { new FocusTrap; } } $this->init(); } public function rta() { // if ($this->settings->rta && $this->content->isRestricted()) { echo ''; // } } abstract public function init(); abstract public function assets(); }