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

Restrict wp-admin access to subscribers

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will restrict wp-admin access to subscribers.

read more

Display wordpress login form anywhere with wp_login_form

wordpress snippet

Depending on how you are using WordPress you may have given users the ability to register to your website. Now all you need is a simple and beautiful way to let them register. This snippet will provide a simple way of adding that login form. Just add the first snippet in the location of your theme you wish to display the login form.

read more

Prevent direct file access to functions.php

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will prevent direct file access to the functions.php file via the URL “http://wpsnipp.com/wp-content/themes/themename/functions.php” Great snippet from Pete over at swisswp.

read more