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

<code style="color: #000000"><span style="color: #0000BB"><?php $wp_admin_bar</span><span style="color: #007700">-></span><span style="color: #0000BB">remove_menu</span><span style="color: #007700">( </span><span style="color: #0000BB">$id </span><span style="color: #007700">); </span><span style="color: #0000BB">?></span></code>

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.