Action hook 'add_admin_bar_menus'

in WP Core File wp-includes/class-wp-admin-bar.php at line 678

View Source

add_admin_bar_menus

Action Hook
Description
Fires after menus are added to the menu bar.

Hook Information

File Location wp-includes/class-wp-admin-bar.php View on GitHub
Hook Type Action
Line Number 678

Hook Parameters

This hook doesn't accept any parameters.

Usage Examples

Basic Usage
<?php
// Hook into add_admin_bar_menus
add_action('add_admin_bar_menus', 'my_custom_function');

function my_custom_function() {
    // Your custom code here
}

Source Code Context

wp-includes/class-wp-admin-bar.php:678 - How this hook is used in WordPress core
<?php
 673  		/**
 674  		 * Fires after menus are added to the menu bar.
 675  		 *
 676  		 * @since 3.1.0
 677  		 */
 678  		do_action( 'add_admin_bar_menus' );
 679  	}
 680  }

PHP Documentation

<?php
/**
		 * Fires after menus are added to the menu bar.
		 *
		 * @since 3.1.0
		 */
Quick Info
  • Hook Type: Action
  • Parameters: 0
  • File: wp-includes/class-wp-admin-bar.php
Related Hooks

Related hooks will be displayed here in future updates.