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.
Category: Code Snippets
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.
This snippet will help you to redirect a WordPress user after login, based on the user role.