diff options
Diffstat (limited to 'plugins/jetpack/sal/class.json-api-site-jetpack.php')
-rw-r--r-- | plugins/jetpack/sal/class.json-api-site-jetpack.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/plugins/jetpack/sal/class.json-api-site-jetpack.php b/plugins/jetpack/sal/class.json-api-site-jetpack.php index b0a954ce..dd9990c3 100644 --- a/plugins/jetpack/sal/class.json-api-site-jetpack.php +++ b/plugins/jetpack/sal/class.json-api-site-jetpack.php @@ -210,6 +210,23 @@ class Jetpack_Site extends Abstract_Jetpack_Site { } /** + * Check if site should be considered as eligible for full site editing. Full site editing + * requires the FSE plugin to be installed and activated. For this method to return true + * the current theme does not need to be FSE compatible. The plugin can also be explicitly + * disabled via the a8c_disable_full_site_editing filter. + * + * @since 8.1.0 + * + * @return bool true if site is eligible for full site editing + */ + public function is_fse_eligible() { + if ( ! Jetpack::is_plugin_active( 'full-site-editing/full-site-editing-plugin.php' ) ) { + return false; + } + return function_exists( '\A8C\FSE\is_site_eligible_for_full_site_editing' ) && \A8C\FSE\is_site_eligible_for_full_site_editing(); + } + + /** * Return the last engine used for an import on the site. * * This option is not used in Jetpack. |