updated   : May 15, 2012
we now have 588 snippets
By : , on October 19, 2011 9:00 am

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
By : , on October 05, 2011 9:00 am

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
By : , on September 29, 2011 9:00 am

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
By : , on September 22, 2011 9:00 am

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
By : , on August 28, 2011 9:00 am

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
By : , on August 21, 2011 9:00 am

Remove recent comments wp_head CSS

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will remove the CSS added to the header for the recent comments widget.

read more
By : , on June 25, 2011 9:00 am

Display theme information with get_theme_data

wordpress snippet

Adding this snippet to your wordpress theme will let you display data from your theme file. name, title, uri, description, authorURI, template, version, status, tags, author. Change THEME_NAME to the name of your theme.

read more
By : , on June 03, 2011 9:00 am

Disable theme changing by removing submenu

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will remove the themes submenu from the admin menu. This is done based on user ID so you can remove the menu just for your clients while still keeping it available for you.

read more