Exact matches only
Search in title
Search in content
Search in comments
Search in excerpt
Filter by Custom Post Type

Templates with restricted user access

With this snippet you can create a page template restricted only to those users with the right role to access to it.

Redirect user after login

This snippet will help you to redirect login user based on their role.

Set permalink settings from functions.php

Heres a snipet that allows you to set the permalink settings from the the functions.php file, rather than from the Wordpress admin backend

Show widget area only if it exists

Heres a snippet on how to hide the sidebar container elements such as UL - if the sidebar has no widget active..