WP_Admin_Bar::remove_menu()
Removes a node from the admin bar.
Метод класса: WP_Admin_Bar{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$WP_Admin_Bar = new WP_Admin_Bar(); $WP_Admin_Bar->remove_menu( $id );
- $id(строка) (обязательный)
- The menu slug to remove.
Список изменений
С версии 3.1.0 | Введена. |
Код WP_Admin_Bar::remove_menu() WP Admin Bar::remove menu WP 6.5.2
public function remove_menu( $id ) { $this->remove_node( $id ); }