SHARE
TWEET

Force attributes into featured image tag

BakerMan Apr 11th, 2014 142 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. add_filter( 'tribe_event_featured_image', 'photoview_feat_img_sizes' );
  2.  
  3. function photoview_feat_img_sizes( $html ) {
  4.         if ( ! tribe_is_photo() ) return $html;
  5.         return str_replace( '<img ', '<img width="200" ', $html );
  6. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top