check(); // integrations $this->loadElementor(); $this->loadBakery(); // in case of urlencoded issues, this class should be used probably. $this->loadSiteOrigins(); } protected function check() // check if any of the options should be disabled due to conflicts { /*if (class_exists('FLBuilder')) { $this->replaceSearchType = false; $this->messages[] = __('Replace and Search feature is not compatible with Beaver Builder.', 'enable-media-replace'); } */ } public function get_replace_type($bool) { if ($this->replaceType === null) return $bool; return $this->replaceType; } public function get_replacesearch_type($bool) { if ($this->replaceSearchType === null) return $bool; return $this->replaceSearchType; } public function get_messages() { foreach($this->messages as $message) { echo '

'. $message . '

'; } } public function loadElementor() { Elementor::getInstance(); } public function loadBakery() { WpBakery::getInstance(); } public function loadSiteOrigins() { SiteOrigin::getInstance(); } } // class