[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/blocks/navigation-link/shared/ -> item-should-render.php (summary)

Shared helper function for checking if navigation items should render.

File Size: 46 lines (2 kb)
Included or required: 2 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 function

  block_core_shared_navigation_item_should_render()

Functions
Functions that are not part of a class:

block_core_shared_navigation_item_should_render( $attributes, $block )   X-Ref
Checks if a navigation item should render based on post status.

param: array    $attributes The block attributes.
param: WP_Block $block      The parsed block.
return: bool True if the item should render, false otherwise.



Generated : Mon Jun 15 08:20:09 2026 Cross-referenced by PHPXref