This snippet adds links to the WordPress toolbar. Instructions Add this to your functions.php file of your theme. *note – that the second and third of $admin_bar->add_menu are add sub menu to the first, and the parent parameter is set to the id of the first $admin_bar->add_menu, which in this case is my-item.
Category: Code Snippets
Here a little snippet that will hide the wordpress admin bar from everybody except site admins. Useful for sites that have public registration turned on.
This snippet will let you create a white-list of terms to include in body_class. This is a great way to filter out many of the unwanted css classes added.
This snippet will add a new column called counts within the WordPress admin post listing that will display the total number of pingbacks, trackbacks for each post.
This snippet is great for the security to protect wordpress against malicious URL requests.
This snippet will disable all dragging of metaboxes within the admin.
This snippet will allow you to control which WordPress posts or pages there should be excluded from WordPress search results.
This simple snippet tracks and shows WordPress post views in your templates - and without the need for a plugin.
With this snippet you can create a page template restricted only to those users with the right role to access to it.
Heres a little nifty snippet that will show the number of queries made and the page load time.