WP Admin Bar with Developer Informations

Not visible right now, but the Admin Bar, which will be available in version 3.1, provides additional information for developers and bug hunters. The Admin Bar is not final at all, so there will be more changes to come, but I’m happy to see, that it will support the developers and administrators on a daily base.

Below you can see some screenshots with the information the Admin Bar will provide. Until now you were only able to get these information with your own function or via Plugins. WordPress supports since a while now, that you can get useful content as a developer, for example the content of your cache, via variable $wp_object_cache.

If you like to see this content, you should implement the following code either in your functions.php of your active Theme or in a Plugin. This snippet doesn’t have a query for Admin or Frontend, so it will show up all the time. Therefore you might want to adjust the code ( if ( !is_admin() ) ).

function display_debug_admin_bar() {
	echo '<style type="text/css" media="screen">#querylist { display:block !important; }</style>';
add_action( 'wp_head', 'display_debug_admin_bar' ); // for frontend
add_action( 'admin_head', 'display_debug_admin_bar' ); // for backend-area

I’m looking forward to see the final version of the Admin Bar, so far very interesting and useful, especially for developers.





3 responses to “WP Admin Bar with Developer Informations”

  1. hpatoio Avatar

    Good news for developers ! Great !

    PS: You probably forgot to delete the notebook-name from the 2nd screen shot ! 😀

  2. Frank Avatar

    The notebook name is not an problem, is a local mashine 😉 The first screen is from a live blog.

  3. […] barre d’administration semblable à celle présente sur les blogs de wordpress.com. WP Engineer nous gratifie de quelques informations à ce sujet et sur la manière dont elle sera implémentée dans le […]