wp-includes/blocks/navigation.php


Lines:

1 to 50 of 50
<?php

/**
 * Server-side rendering of the `core/navigation` block.
 *
 * @package WordPress
 */

// These functions are used for the __unstableLocation feature and only active
// when the gutenberg plugin is active.
if ( defined( 'IS_GUTENBERG_PLUGIN' ) && IS_GUTENBERG_PLUGIN ) {
/* function block_core_navigation_get_menu_items_at_location() – Returns the menu items for a WordPress menu location. */


/* function block_core_navigation_sort_menu_items_by_parent_id() – Sorts a standard array of menu items into a nested structure keyed by the
id of the parent menu. */

/* function block_core_navigation_parse_blocks_from_menu_items() – Turns menu item data into a nested array of parsed blocks */
}

/* function block_core_navigation_build_css_colors() – Build an array with CSS classes and inline styles defining the colors
which will be applied to the navigation markup in the front-end. */

/* function block_core_navigation_build_css_font_sizes() – Build an array with CSS classes and inline styles defining the font sizes
which will be applied to the navigation markup in the front-end. */

/* function block_core_navigation_render_submenu_icon() – Returns the top-level submenu SVG chevron icon. */


/* function block_core_navigation_get_first_non_empty_navigation() – Finds the first non-empty `wp_navigation` Post. */

/* function block_core_navigation_filter_out_empty_blocks() – Filter out empty "null" blocks from the block list. */

/* function block_core_navigation_get_fallback_blocks() – Retrieves the appropriate fallback to be used on the front of the
site when there is no menu assigned to the Nav block. */

/* function block_core_navigation_get_post_ids */

/* function block_core_navigation_from_block_get_post_ids */

/* function render_block_core_navigation() – Renders the `core/navigation` block on server. */

/* function register_block_core_navigation() – Register the navigation block. */

add_action( 'init', 'register_block_core_navigation' );

/* function block_core_navigation_typographic_presets_backcompatibility() – Filter that changes the parsed attribute values of navigation blocks contain typographic presets to contain the values directly. */

add_filter( 'render_block_data', 'block_core_navigation_typographic_presets_backcompatibility' );
 

 View on GitHub View on Trac

Called by

    Invoked by

      Calls

      Call hooks

      API Letters: ,,,,