is_fusion_builder_active() ? 'fusion' : 'gutenberg'; } /** * True when the current admin screen is the Fusion Builder page editor. * Safe to call on admin_init and later hooks only. */ public function is_fusion_builder_screen(): bool { if ( ! is_admin() ) { return false; } $screen = function_exists( 'get_current_screen' ) ? get_current_screen() : null; return $screen instanceof \WP_Screen && str_contains( (string) $screen->base, 'fusion' ); } }