wordpress snippets last updated   : October 6, 2014
we now have 641 snippets
category password

Send email notification when profile updates

wordpress snippet

I got a few emails asking about sending an email when a user simply updates the profile. Well here it is, adding this snippet to the functions.php of your wordpress theme will send an email notification to the user when the user profile updates.

read more

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

Require login to view posts in wordpress

wordpress snippet

Adding this PHP code to the functions.php of your wordpress theme will require users to login before viewing specific posts defined by and array of post IDs. Once the user is logged in they will be redirected to the original post.

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