, a code gallery for creating, saving and sharing all kinds of code snippets.

Joined on Saturday, May 3, 2014


Snipped Code

Change Avatar Size

The wp_list_comments function has a parameter to change the default (48px) size to anywhere between …

Snipped Code

Display Author Info

The image that shows for the author comes from the email address set for that user which goes to a …

Snipped Code

Remove WP Generator Meta Tag

It can be considered a security risk to make your wordpress version visible and public you should …

Snipped Code

Array of Country Names

This will save you time, now you do not need to write all country names.

Snipped Code

Clear Field on Focus

Replace "value" with the default value. If the field is selected, the default value will go away …

Snipped Code

Format Currency

This function will round numbers to two decimal places, and ensure that the returned value has two …

Snipped Code

Strip Whitespace From String

Whitespace, meaning tabs and spaces.

Snipped Code

Convert HEX to RGB

Give function hex code (e.g. #eeeeee), returns array of RGB values.

Snipped Code

Get Width/Height of Image

If all you have for an image is the URL, you can still find the dimensions.