WordPress at Your Fingertips
function is not described

_is_valid_nav_menu_item() WP 3.2.0

Return if a menu item is valid.

This is an internal function for using it by WP core itself. It's not recommended to use this function in your code.

No Hooks.


true|false. False if invalid, otherwise true.


_is_valid_nav_menu_item( $item );
$item(object) (required)
The menu item to check.

Code of _is_valid_nav_menu_item() WP 5.8.3

function _is_valid_nav_menu_item( $item ) {
	return empty( $item->_invalid );