With this snippet you can create a page template restricted only to those users with the right role to access to it.
Category: Code Snippets
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.
Here is how to exclude a custom post type from the WordPress search results.
Define one language for the admin section and another language for the end-user theme.
This WordPress snippet allows you to set the permalink settings from the functions.php file, rather than from the WordPress admin.
Heres a snippet on how to hide the WordPress sidebar container elements such as UL - if the sidebar has no widget active..
This snippet will show you how to extend the WordPress search function to include custom post meta.
This snippet will prevent WordPress from checking if there’s any updates for installed plugins. This could be useful if ie. you’re creating a website for a client.
You can add as many individual image sizes to your WordPress site as you like by using the following function.