You are viewing an old revision of this post, from March 15, 2015 @ 13:16:50. See below for differences between this version and the current revision.

Automate The Inclusion Of A Class To All Images

[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.)

Tags: ,

No comments yet.

Leave a Reply