Customizer

Code

Function
Example
1
wponion_admin_bar(
2
array($title, $href, $id, $meta, $parent, $group, $submenus)
3
);
Copied!
1
wponion_admin_bar(
2
array(
3
array(
4
'title' => 'My_Menu_Title',
5
'href' => 'https://mycustomlink.com',
6
'id' => 'my-custom-html-id',
7
'parent' => array(
8
'children' => array(),
9
),
10
'group' => array(),
11
'meta' => array(
12
'title' => 'my-custom-meta-title',
13
'class' => 'my-custom-meta-class',
14
'id' => 'my-custom-meta-id',
15
'target' => 'self',
16
'onclick' => NULL,
17
'rel' => NULL,
18
'tab' => NULL,
19
'lang' => NULL,
20
'dir' => NULL,
21
),
22
'submenus' => array(
23
array(
24
'title' => 'My_Menu_Title',
25
'href' => 'https://mycustomlink.com',
26
'id' => 'my-custom-html-id',
27
'meta' => array(
28
'title' => 'my-custom-meta-title',
29
'class' => 'my-custom-meta-class',
30
'id' => 'my-custom-meta-id',
31
'target' => 'self',
32
'onclick' => NULL,
33
'rel' => NULL,
34
'tab' => NULL,
35
'lang' => NULL,
36
'dir' => NULL,
37
),
38
),
39
),
40
),
41
),
42
);
Copied!

Output

Tutorial

Project Usage

Notes

There are currently no extra notes for this operation.
Last modified 1yr ago
Export as PDF
Copy link