This snippet will help you to redirect a WordPress user after login, based on the user role.
Category: Code Snippets
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.
This snippet can be used to target code for a specific theme only. A need feature if you want to execute conditional functions on ex. different devices and platforms.
This WordPress snippet will allow you to link to an external link from the WordPress post title