wphooks.info - wp_admin_bar_class

wp_admin_bar_class

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-includes/admin-bar.php:
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
	/* Instantiate the admin bar */

	/**
	 * Filters the admin bar class to instantiate.
	 *
	 * @since 3.1.0
	 *
	 * @param string $wp_admin_bar_class Admin bar class to use. Default 'WP_Admin_Bar'.
	 */
	$admin_bar_class = apply_filters( 'wp_admin_bar_class', 'WP_Admin_Bar' );
	if ( class_exists( $admin_bar_class ) ) {
		$wp_admin_bar = new $admin_bar_class;
	} else {
		return false;
	}

	$wp_admin_bar->initialize();
	$wp_admin_bar->add_menus();