WP_Admin_Bar::remove_node( string $id )
Remove a node.
Description
Parameters
- $id
-
(string) (Required) The ID of the item.
Source
File: wp-includes/class-wp-admin-bar.php
public function remove_node( $id ) { $this->_unset_node( $id ); }
Remove a node.
(string) (Required) The ID of the item.
File: wp-includes/class-wp-admin-bar.php
public function remove_node( $id ) { $this->_unset_node( $id ); }
The following code removes the Customizer links, Background and Header from the Toolbar drop-downs:
The following code removes the WP logo and the Comments menu: