Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: wp_audio_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
1474       * If the filtered output isn't empty, it will be used instead of generating the default audio template.
1475       *
1476       * @since 3.6.0
1477       *
1478       * @param string $html      Empty variable to be replaced with shortcode markup.
1479       * @param array  $attr      Attributes of the shortcode. @see wp_audio_shortcode()
1480       * @param string $content   Shortcode content.
1481       * @param int    $instances Unique numeric ID of this audio shortcode instance.
1482       */
1483      $html = apply_filters( 'wp_audio_shortcode_override', '', $attr, $content, $instances );
1484      if ( '' !== $html )
1485           return $html;
1486
1487      $audio = null;
1488
1489      $default_types = wp_get_audio_extensions();
1490      $defaults_atts = array(
1491           'src'      => '',
1492           'loop'     => '',