wordpress snippets last updated   : April 14, 2014
we now have 630 snippets

Media library admin columns with attachment id

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will add a new column within the media library admin columns with the attachment id.

read more

Remove “From computer” tab for posts with existing attachments

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will remove the “From computer:” tab from posts within existing attachments.

read more

Add new column with media ID to media library

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will add a new column within the media library with the attachment ID.

read more

List all unattached files in media library

wordpress snippet

Adding the first snippet to the functions.php of your wordpress theme then add the second snippet into your wordpress template. Once added this snippet will display thumbnails of unattached image files and links to other file types.

read more

Add media library column with image width and height

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will add a new column to the media library that will display the images width and height.

read more

Restrict file type uploads by user name

wordpress snippet

Adding this snippet to the functions.php of your worpress theme will let you restrict file uploads by type for specific users only. When a username is not in the users array they will only be able to upload jpg, and gif images.

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