has_support_from_core() || $this->has_support_from_gutenberg_plugin(); } /** * Returns whether the Gutenberg plugin provides minimal support. * * @return bool */ public function has_support_from_gutenberg_plugin() { return defined( 'GUTENBERG_VERSION' ) && version_compare( GUTENBERG_VERSION, self::GB_MIN_VERSION, '>=' ); } /** * Returns whether WP core provides minimum Gutenberg support. * * @return bool */ public function has_support_from_core() { return version_compare( get_bloginfo( 'version' ), self::WP_MIN_VERSION, '>=' ); } }