Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: wp_video_shortcode_override

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
1027       * Override the default video shortcode.
1028       *
1029       * @since 3.7.0
1030       *
1031       * @param null              Empty variable to be replaced with shortcode markup.
1032       * @param array  $attr      Attributes of the shortcode.
1033       * @param string $content   Shortcode content.
1034       * @param int    $instances Unique numeric ID of this video shortcode instance.
1035       */
1036      $html = apply_filters( 'wp_video_shortcode_override', '', $attr, $content, $instances );
1037      if ( '' !== $html )
1038           return $html;
1039
1040      $video = null;
1041
1042      $default_types = wp_get_video_extensions();
1043      $defaults_atts = array(
1044           'src'      => '',
1045           'poster'   => '',