wordpress snippets last updated   : April 14, 2014
we now have 630 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

Extend auto logout period

wordpress snippet

Adding this PHP code to the functions.php of your wordpress theme will extend the length of time cookies are kept the example is set to 1 week. Please note the value is defined in seconds

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