Automattic\WooCommerce\Blocks\Domain
Bootstrap::is_block_editor_unified_assets_enabled_during_bootstrap
Check whether unified block editor assets are enabled during plugin bootstrap.
Feature definitions contain translated presentation strings and are not safe to use before init.
Метод класса: Bootstrap{}
Хуков нет.
Возвращает
bool.
Использование
// private - только в коде основоного (родительского) класса $result = $this->is_block_editor_unified_assets_enabled_during_bootstrap(): bool;
Код Bootstrap::is_block_editor_unified_assets_enabled_during_bootstrap() Bootstrap::is block editor unified assets enabled during bootstrap WC 11.2.2
private function is_block_editor_unified_assets_enabled_during_bootstrap(): bool {
// Keep this fallback aligned with `enabled_by_default` for unified block editor assets in FeaturesController.
return 'yes' === get_option( BlockEditorUnifiedAssets::OPTION_NAME, 'no' );
}