Remove unneeded images / thumbnail sizes
Adding some or all of these lines of code to the functions.php of your wordpress theme will effectively remove some of the default images sizes that may be unneeded. Make sure to include both the _w _h for width and height,
read moreDisplay post attachment count in admin column
Adding this snippet to the functions.php of your wordpress theme will display the post attachment count in a custom admin column.
read morethis months featured snippets
Add a custom class to wp_get_attachment_link
Adding this snippet to the functions.php of your wordpress theme will add a custom class to wp_get_attachment_link.
read moreDisplay total number of PDF files in your media library
Adding this snippet to the functions.php of your wordpress theme will return the total number of PDF files within your media library.
read moreCheck if post has more than one image attachment
Adding this snippet to your wordpress theme will let you determine if a post has more than one image attachment or modify the count to check for a specific number of image attachments.
read moreAdd new column with media ID to media library
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 moreAttachment window hide buttons and input fields
Adding this snippet to the functions.php of your wordpress theme will allow you to hide buttons and input fields within the media attachment window.
read more




















