function
custom_toolbar_link(
$wp_admin_bar
) {
$args
=
array
(
'id'
=>
'bigtheme'
,
'title'
=>
'BIGtheme'
,
'href'
=>
'https://www.bigtheme.ir'
,
'meta'
=>
array
(
'class'
=>
'wpbigtheme'
,
'title'
=>
'Visit bigtheme.ir'
)
);
$wp_admin_bar
->add_node(
$args
);
$args
=
array
(
'id'
=>
'plugin wordpress'
,
'title'
=>
'wordpress plugin'
,
'href'
=>
'http://bigtheme.ir/category/plugin-wordpress/'
,
'parent'
=>
'bigtheme'
,
'meta'
=>
array
(
'class'
=>
'wpbigtheme wordpress'
,
'title'
=>
'Visit WordPress tutorial for bigtheme'
)
);
$wp_admin_bar
->add_node(
$args
);
$args
=
array
(
'id'
=>
'wordpress-tutorials'
,
'title'
=>
'bigtheme Tutorials'
,
'href'
=>
'http://bigtheme.ir/category/wordpress-school/'
,
'parent'
=>
'bigtheme'
,
'meta'
=>
array
(
'class'
=>
'wpbigtheme-tutorials'
,
'title'
=>
'Visit bigtheme Tutorials'
)
);
$wp_admin_bar
->add_node(
$args
);
$args
=
array
(
'id'
=>
'bigwordpress-themes'
,
'title'
=>
'wordpress Themes'
,
'href'
=>
'http://bigtheme.ir/tag/wp-theme/'
,
'parent'
=>
'bigtheme-tutorials'
,
'meta'
=>
array
(
'class'
=>
'wpbigtheme-themes'
,
'title'
=>
'Visit WordPress Themes for big theme'
)
);
$wp_admin_bar
->add_node(
$args
);
}
add_action(
'admin_bar_menu'
,
'custom_toolbar_link'
, 999);