Automate The Inclusion Of A Class To All Images

//------------------------------------------------//
// AUTOMATE THE INCLUSION OF A CLASS TO ALL IMAGES
//------------------------------------------------//
function add_image_class($class){
 $class .= ' YOUR_CLASS';
 return $class;
}
add_filter('get_image_tag_class','add_image_class');

Revisions

Tags: ,

No comments yet.

Leave a Reply