isActive() check. // // Example: acpt_is_elementor_pro_active // $isActiveFromFilter = apply_filters('acpt_is_'.$this->name().'_active', false); if ($isActiveFromFilter === true) { $isActive = true; } else { $isActive = $this->isActive($request); } if ($isActive) { $this->runIntegration(); } } /** * @param \WP_Theme $theme * * @return false|string */ protected function getThemeVersion(\WP_Theme $theme) { $parentTheme = $theme->parent(); return ($parentTheme instanceof \WP_Theme) ? $parentTheme->get('Version') : $theme->get('Version'); } /** * @param \WP_Theme $theme * @param string $minimumVersion * * @return bool|int */ protected function checkThemeVersion(\WP_Theme $theme, string $minimumVersion) { $version = $this->getThemeVersion($theme); if (!$version) { return false; } return version_compare($version, $minimumVersion, '>='); } }