Determines whether a menu item is valid.
Parameters
$item
objectrequired- The menu item to check.
Source
function _is_valid_nav_menu_item( $item ) {
return empty( $item->_invalid );
}
Changelog
Version | Description |
---|---|
3.2.0 | Introduced. |
This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
Determines whether a menu item is valid.
$item
objectrequiredfunction _is_valid_nav_menu_item( $item ) {
return empty( $item->_invalid );
}
Version | Description |
---|---|
3.2.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.