Skip to content

Commit 86e5764

Browse files
committed
added add_node() method in WP_Admin_Bar
1 parent c60941f commit 86e5764

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

stubs/WordPress/class-wp-admin-bar.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,21 @@ class WP_Admin_Bar {
2222
public function add_menu( $node ) {
2323
}
2424

25+
/**
26+
* @param array{id: string, title?: string|false, parent?: string|false, href?: string|false, group?: bool, meta?: array{html?: string, class?: string, rel?: string, onclick?: string, target?: string, title?: string|false, tabindex?: string}} $node {
27+
* @type string $id
28+
* @type string|false $title
29+
* @type string|false $parent
30+
* @type string|false $href
31+
* @type bool $group
32+
* @type array $meta
33+
* }
34+
*
35+
* @return void
36+
*/
37+
public function add_node( $node ) {
38+
}
39+
2540
/**
2641
* @param string $id
2742
* @return array{id: string, title?: string|false, parent?: string|false, href?: string|false, group?: bool, meta?: array{html?: string, class?: string, rel?: string, onclick?: string, target?: string, title?: string|false, tabindex?: string}}|void {

0 commit comments

Comments
 (0)