wordpress snippets last updated   : July 14, 2014
we now have 634 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 the lost your password? link

wordpress snippet

Yesterday I posted a snippet to disable the lost password feature in wordpress. This will add to that little snippet and remove the lost password text from the wordpress login page. This does not remove the link but just replaces the Lost your password? text with nothing effectively removing the link.

read more

Disable the allow_password_reset feature

wordpress snippet

Adding this snippet to the functions.php will disable the allow_password_reset feature from the login page. When using the lost password feature after you add this snippet wordpress will display “Password reset is not allowed for this user”.

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