Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/remove menu

This page redirects to an external site: https://developer.wordpress.org/reference/classes/wp_admin_bar/remove_menu/

Description

Calls the remove_node function, and passes on the node $id argument.

Usage

<?php $wp_admin_bar->remove_menu$id ); ?>

Parameters

$id
(string) (required) The node ID of the Toolbar item you want to remove .
Default: None

Source File

remove_menu() is located in wp-includes/class-wp-admin-bar.php.

Related

Toolbar API

See also index of Function Reference and index of Template Tags.
This article is marked as in need of editing. You can help Codex by editing it.