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

Create page on theme activation

wordpress snippet

If you are creating a new theme either for sale of for a client you may want to have it create a custom page or pages when the theme is activated. Adding this snippet to the functions.php of your theme will do just that.

read more

Adjust settings on theme activation

wordpress snippet

Place this in your functions.php to adjust your default WordPress settings when activating your theme for the first time. This function also deletes the default post, page and comment that are created when you install WordPress.

read more

Remove current theme from “Right Now” dashboard widget

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will remove current theme from “Right Now” dashboard widget.

read more

Display post format in your theme

wordpress snippet

Adding this snippet to your wordpress theme will display the post format or ‘standard’ if no post format is available.

read more

Insert link upon theme activation using wp_insert_link

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will add the specified link to your wordpress installation upon theme activation.

read more

Remove the theme editor submenu within admin

wordpress snippet

Posted a snippet yesterday to remove $submenu items but for some reason it does not remove the theme editor panel this way. Adding this snippet to the functions.php of your wordpress theme will remove the theme editor submenu. Or disable editor and plugin modifications entirely.

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