0

Is there any possible way to load admin bar without wp_head or wp_footer? If no, so maybe there is a way to load wp_head() or wp_footer() to catch only admin bar functions, styles and scripts? Is this even possible in worpdress?

For example: wp_head(load_admin_bar()); or something like that.

Thanks for any answers.

0

Looks like, the only solutions which worked was to call admin bar directly.

if (current_user_can('administrator') || current_user_can('editor')) {
 wp_admin_bar_render();
}

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