WP_Admin_Bar::remove_menu

Advertisement

Summery Summery

Remove a node from the admin bar.

Syntax Syntax

WP_Admin_Bar::remove_menu( string $id )

Parameters Parameters

$id

(string) (Required) The menu slug to remove.

Source Source

File: wp-includes/class-wp-admin-bar.php

	public function remove_menu( $id ) {
		$this->remove_node( $id );
	}

Advertisement

Changelog Changelog

Changelog
Version Description
3.1.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.