WordPress Hooks Tutorial for beginners from scratch #6 Action hook "admin_bar_menu"




In this video session we have discussed about

Action Hook: ‘admin_bar_menu’

admin_bar_menu action hook fires when admin bar initializes. By using this we can add our custom menus at admin bar.

Syntax:
add_action(‘admin_bar_menu’,’callback_function’)

Example:

function owt_custom_bar_menu($wp_admin_bar) {

$args = array(
“id” = “owt-blog”,
“title” = “Online Web Tutor”,
“href” = ”
“meta” = array(
“class” = “owt-custom-blog”,
“target” = “_blank”
)
);

$wp_admin_bar-add_node($args);

$submenu1 = array(
“id” = “owt-submenu1”,
“title” = “Google”,
“href” = ”
“parent” = “owt-blog”
);

$wp_admin_bar-add_node($submenu1);

$submenu2 = array(
“id” = “owt-submenu2”,
“title” = “Youtube”,
“href” = ”
“parent” = “owt-blog”
);

$wp_admin_bar-add_node($submenu2);
}

add_action(“admin_bar_menu”, “owt_custom_bar_menu”, 999);

SOCIAL :
===============
Subscribe :
FACEBOOK :
TWITTER:
BLOG:

Other Tutorials
===============
Wordpress Customizations:
———————————
Wordpress Theme (Hindi):
Wordpress Widget (Hindi):
Wordpress Plugin (English):
Wordpress Theme Options (English):
Wordpress JSON Rest API (English):
Wordpress JSON Rest API (Hindi):
and many more…

Javascript framework:
———————————-
Learn backbone.js here! (English) :
Learn Vue JS here ! (Hindi):

PHP Frameworks:
———————————-
Laravel tutorial (Hindi):
CakePHP tutorial (Hindi):

Tags
===================
wordpress hooks,
wordpress hooks tutorials for beginners,
beginner wordpress hooks tutorial,
learn wordpress hooks,
complete wordpress hooks tutorials for beginners,
wordpress hooks from scratch,
learn wordpress hooks from scratch,
wordpress hooks tutorial,
learn wordpress hooks step by step,
wordpress hooks tutorials for beginners,
wordpress hooks online web tutor,
wordpress hooks tutorials step by step,
online web tutor,
profotech solutions,

Thanks
Online Web Tutor
Keep learning and Sharing 🙂


Fuente – Source

Wordpress Hooks Tutorial for beginners from scratch #6 Action hook "admin_bar_menu"

Necesitas ayuda con wp? Entonces WPVideo es tu sitio.
Encuentra lo que buscas entre cientos de miles de videos y experiencias personales de otros usuarios. Todos los que empezamos con wp deberíamos tener acceso a esta web, ojalá yo hubiera tenido algo así cuando empecé mi camino como webmaster 🙂
Pero ahora quiero y puedo poner esta web a vuestra disposición.
Disfrutadla 😉

Need help with wp? Then WPVideo is your site.
Find what you are looking for among hundreds of thousands of videos and personal experiences of other users. All of us who started with wp should have access to this website, I wish I had something like that when I started my journey as webmaster 🙂
But now I want and I can put this website at your disposal.
Enjoy it 😉

https://www.wpvideo.eu

Publicado en Plugins, Temas (Themes), Tutoriales (Tutorials), Wordpress y etiquetado .

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *