[ Index ]

WordPress 5.4.1

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    




/wp-includes/ -> class-wp-admin-bar.php (summary)

Toolbar API: WP_Admin_Bar class

File Size: 640 lines (17 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

WP_Admin_Bar:: (21 methods):

Class: WP_Admin_Bar  - X-Ref

Core class used to implement the Toolbar API.

__get( $name )   X-Ref

param: string $name
return: string|array|void

initialize()   X-Ref
No description

add_menu( $node )   X-Ref
Add a node (menu item) to the Admin Bar menu.

param: array $node The attributes that define the node.

remove_menu( $id )   X-Ref
Remove a node from the admin bar.

param: string $id The menu slug to remove.

add_node( $args )   X-Ref
Adds a node to the menu.

param: array $args {

_set_node( $args )   X-Ref

param: array $args

get_node( $id )   X-Ref
Gets a node.

param: string $id
return: object|void Node.

_get_node( $id )   X-Ref

param: string $id
return: object|void

get_nodes()   X-Ref

return: array|void

_get_nodes()   X-Ref

return: array|void

add_group( $args )   X-Ref
Add a group to a menu node.

param: array $args {

remove_node( $id )   X-Ref
Remove a node.

param: string $id The ID of the item.

_unset_node( $id )   X-Ref

param: string $id

render()   X-Ref
No description

_bind()   X-Ref

return: object|void

_render( $root )   X-Ref

param: object $root

_render_container( $node )   X-Ref

param: object $node

_render_group( $node )   X-Ref

param: object $node

_render_item( $node )   X-Ref

param: object $node

recursive_render( $id, $node )   X-Ref
Renders toolbar items recursively.

param: string $id    Unused.
param: object $node

add_menus()   X-Ref
No description

Generated: Tue May 19 15:51:04 2020 Cross-referenced by PHPXref 0.7.1