wordpress snippets last updated   : September 29, 2014
we now have 639 snippets

Expire protected post cookie with session

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme with a time of 0 in setcookie() forces the cookie to expire with the session. Great little snippet by Drew Jaynes thanks for submitting.

read more

Include password protected posts in search results

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will allow protected posts to show up in search results even when a user is not logged in.

read more

Remove private and Protected

wordpress snippet

Adding this PHP code to the functions.php of your wordpress theme will remove the private and protected text that will displayed with password protected posts.

read more
jqsnipp.com | we just launched jquery snippets website