wp-includes/blocks/navigation.php:145Determine whether the navigation blocks is interactive.
$attributesarray$inner_blocksWP_Block_Listbool private static function is_interactive( $attributes, $inner_blocks ) { $has_submenus = static::has_submenus( $inner_blocks ); $is_responsive_menu = static::is_responsive( $attributes ); $computed_visibility = block_core_navigation_get_submenu_visibility( $attributes ); $open_on_click = 'click' === $computed_visibility; $show_submenu_icon = ! empty( $attributes['showSubmenuIcon'] ); return ( $has_submenus && ( $open_on_click || $show_submenu_icon ) ) || $is_responsive_menu; }Introduced in 6.5.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-includes/blocks/navigation.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.