um_nav_menu_roles_item_visibility
Hook type
Filter
Description
Add filter to work with plugins that don't use traditional roles
Parameters
$visible
(bool) Visible?
$item
(object) Menu Item
Usage
<?php add_filter( 'um_nav_menu_roles_item_visibility', 'function_name', 10, 2 ); ?>
Examples
<?php add_filter( 'um_nav_menu_roles_item_visibility', 'my_nav_menu_roles_item_visibility', 10, 2 ); function my_nav_menu_roles_item_visibility( $visible, $item ) { // your code here return $visible; } ?>
Change Log
Since: 2.0
Source
um_nav_menu_roles_item_visibility
is located in includes/core/um-filters-navmenu.php::line 100