wordpress snippets last updated   : April 14, 2014
we now have 630 snippets
category functions.php

Maintenance mode without plug-in

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will put your wordpress website into Maintenance mode. To disable this snippet and allow people to access your website again, just comment out the last line // add_action(); .

read more

Change spell check language

wordpress snippet

By default wordpress spell check language is English you can change this with the following snippet or add additional languages. The following sample is English and German. Place this snippet within the functions.php of your wordpress theme.

read more

Featured / post thumbnail image caption

wordpress snippet

Add the first block of code to the functions.php of your wordpress theme, then add the second block within the loop of the desired template file, single.php or, index.php to display featured image caption.

read more

Add horizontal rule button to editor

wordpress snippet

Adding this PHP snippet to the functions.php of your wordpress theme will add a <hr /> button to the editor.

read more

Set post thumbnail size

wordpress snippet

Adding this to the functions.php of your wordpress theme will allow you to set the default thumbnail size.

read more

Force custom post type to be private

wordpress snippet

Adding this PHP snippet to the functions.php of your wordpress theme will force your custom post type to be private by default. Do not forget to change my_post_type to the name of your custom post type. This is a slight change from the source snippet and does not include a password since this is private and not password protected.

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