[php]//------------------------------------------------//
// 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');[/php]
Revisions
- March 15, 2015 @ 13:16:50 [Current Revision] by PeterLugg
- March 15, 2015 @ 13:16:50 by PeterLugg
Revision Differences
There are no differences between the March 15, 2015 @ 13:16:50 revision and the current revision. (Maybe only post meta information was changed.)
No comments yet.