WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What function actually renders the wp_admin_bar? And how can I call it? I want to print out just the nodes / DOM for the actual menu. It would end up rendering something like this:

<div id="wpadminbar">
    <div class="quicklinks">

I couldn't find it in the documentation anywhere.

share|improve this question
I guess you're trying to modify the admin bar. These posts might help you... sumtips.com/2011/03/customize-wordpress-admin-bar.html , doitwithwp.com/customize-wordpress-admin-bar , digwp.com/2011/04/admin-bar-tricks . – Rutwick Gangurde Oct 4 '11 at 4:46
I'm not trying to modify it. I'm actually just trying to render it separately from the footer. – cwd Oct 5 '11 at 2:11
Ohh... Sorry, wrong assumption! Btw, one of these posts has that one too. – Rutwick Gangurde Oct 5 '11 at 3:50
up vote 1 down vote accepted

WordPress admin bar is rendered by render() method in WP_Admin_Bar class, also you may need to check wp_admin_bar_render(), it add few hooks before and after rendering and also calls this method

share|improve this answer
perfect. thanks! – cwd Oct 5 '11 at 2:12

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.