wp_mediaelement_fallback( string $url )
Provides a No-JS Flash fallback as a last resort for audio / video.
Description Description
Parameters Parameters
- $url
-
(string) (Required) The media element URL.
Return Return
(string) Fallback HTML.
Source Source
File: wp-includes/media.php
function wp_mediaelement_fallback( $url ) { /** * Filters the Mediaelement fallback output for no-JS. * * @since 3.6.0 * * @param string $output Fallback output for no-JS. * @param string $url Media file URL. */ return apply_filters( 'wp_mediaelement_fallback', sprintf( '<a href="%1$s">%1$s</a>', esc_url( $url ) ), $url ); }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
3.6.0 | Introduced. |
User Contributed Notes User Contributed Notes
You must log in before being able to contribute a note or feedback.
Basic Example
Returns this HTML: