Automattic\WooCommerce\Admin\Features\Navigation

Menu::hide_wp_menu_item()public staticWC 1.0

Add a callback to identify and hide pages in the WP menu.

Method of the class: Menu{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = Menu::hide_wp_menu_item( $callback );
$callback (required)
-

Menu::hide_wp_menu_item() code WC 8.6.1

public static function hide_wp_menu_item( $callback ) {
	self::$callbacks[ $callback ] = true;
}