wp_nav_menu_{$menu->slug}_items

wp_nav_menu_{$menu->slug}_items

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('wp_nav_menu_{$menu->slug}_items') is found 1 times:

  • /wp-includes/nav-menu-template.php line 278
    	 *
    	 * @param string   $items The HTML list content for the menu items.
    	 * @param stdClass $args  An object containing wp_nav_menu() arguments.
    	 */
    	$items = apply_filters( "wp_nav_menu_{$menu->slug}_items", $items, $args );
    
    	// Don't print any markup if there are no items at this point.
    	if ( empty( $items ) ) {
    		return false;
    	}