/** * Get or check if the current WP version is greater than a specified version * * @param string $version optional */ public function get_current_wp_version($version = null) { $wp_version = $this->bridge->get_bloginfo('version'); if ($version) { return version_compare($wp_version, $version, '>='); } return $wp_version; }