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.
Method of the class: Bootstrap{}
No Hooks.
Returns
bool.
Usage
// private - for code of main (parent) class only $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 code WC 11.1.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' );
}