wp_mediaelement_fallback filter-hook . WP 3.6.0
Filters the Mediaelement fallback output for no-JS.
Usage
add_filter( 'wp_mediaelement_fallback', 'filter_function_name_5221', 10, 2 ); function filter_function_name_5221( $output, $url ){ // filter... return $output; }
- $output(string)
- Fallback output for no-JS.
- $url(string)
- Media file URL.
Changelog
Since 3.6.0 | Introduced. |
Where the hook is called
wp_mediaelement_fallback
wp-includes/media.php 2755
return apply_filters( 'wp_mediaelement_fallback', sprintf( '<a href="%1$s">%1$s</a>', esc_url( $url ) ), $url );