block_core_navigation_get_classic_menu_fallback example


function block_core_navigation_maybe_use_classic_menu_fallback() {

    _deprecated_function( __FUNCTION__, '6.3.0', 'WP_Navigation_Fallback::create_classic_menu_fallback' );

    // See if we have a classic menu.     $classic_nav_menu = block_core_navigation_get_classic_menu_fallback();

    if ( ! $classic_nav_menu ) {
        return;
    }

    // If we have a classic menu then convert it to blocks.     $classic_nav_menu_blocks = block_core_navigation_get_classic_menu_fallback_blocks( $classic_nav_menu );

    if ( empty( $classic_nav_menu_blocks ) ) {
        return;
    }

    
Home | Imprint | This part of the site doesn't use cookies.