Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Plugin API/Action Reference/wp after admin bar render


The wp_after_admin_bar_render action allows developers to modify the $wp_admin_bar object after it is used to render the Toolbar to the screen (if enabled in user preferences).

This action is triggered right before the last action - shutdown action, when PHP execution is about to end.


function my_custom_admin_bar() {
	global $wp_admin_bar;
	//Do stuff
add_action( 'wp_after_admin_bar_render', 'my_custom_admin_bar' ); 
This page is marked as incomplete. You can help Codex by expanding it.