[wp-trac] [WordPress Trac] #37329: Need all the attributes in wp_video_shortcode_class filter

WordPress Trac noreply at wordpress.org
Mon Jul 11 16:24:46 UTC 2016


#37329: Need all the attributes in wp_video_shortcode_class filter
-----------------------------+-----------------------------
 Reporter:  sakibmoon        |      Owner:
     Type:  feature request  |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Media            |    Version:  4.5.3
 Severity:  normal           |   Keywords:
  Focuses:  ui               |
-----------------------------+-----------------------------
 Take a look at the following line of code:
 https://core.trac.wordpress.org/browser/tags/4.5.3/src/wp-
 includes/media.php#L2502


 {{{
 $atts['class'] = apply_filters( 'wp_video_shortcode_class', $atts['class']
 );
 }}}

 Using this filter we can add/remove class to video container. But I need
 facility where I can add custom class based on other attribute like video
 src.

 Can we pass all the attributes instead of just the existing classes?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37329>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list