wp_admin_bar_render [ WordPress Function ]
| Defined at: |
|
Render the admin bar to the page based on the $wp_admin_bar->menu member var.
This is called very late on the footer actions so that it will render after anything else being added to the footer.
It includes the action "admin_bar_menu" which should be used to hook in and add new menus to the admin bar. That way you can be sure that you are adding at most optimal point, right before the admin bar is rendered. This also gives you access to the $post global, among others.
Source
<?php
function wp_admin_bar_render() {
global $wp_admin_bar;
if ( ! is_admin_bar_showing() || ! is_object( $wp_admin_bar ) )
return false;
do_action_ref_array( 'admin_bar_menu', array( &$wp_admin_bar ) );
do_action( 'wp_before_admin_bar_render' );
$wp_admin_bar->render();
do_action( 'wp_after_admin_bar_render' );
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- wp_admin_bar_render (WordPress Function) - WPSeek.com
WordPress lookup for wp_admin_bar_render, a WordPress Function. wpseek. com is a WordPress-centric search tool for developers and theme authors.
wpseek.com - How to Remove the Admin Bar from Wordpress 3.1
Mar 1, 2011 ... remove_action('wp_footer','wp_admin_bar_render',1000); tells the system not to render the admin bar menu (html) when wp_footer is called, ...
speckyboy.com - wp_admin_bar_render | A HitchHackers guide through WordPress
Feb 24, 2011 ... function wp_admin_bar_render() { global $wp_admin_bar; if ( ! is_admin_bar_showing() || ! is_object( $wp_admin_bar ) ) return false; ...
hitchhackerguide.com - Disable Admin Bar in WordPress 3.3 | Wptuts+
Dec 18, 2011 ... if (!function_exists('disableAdminBar')) { function disableAdminBar(){ remove_action( 'admin_footer', 'wp_admin_bar_render', 1000 ) ...
wp.tutsplus.com