Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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">
        <ul>
            ....
        </ul>
    </div>
</div>

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
1  
Ohh... Sorry, wrong assumption! Btw, one of these posts has that one too. –  Rutwick Gangurde Oct 5 '11 at 3:50

1 Answer 1

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

 
discard

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.