wordpress / latest / functions / wp_mediaelement_fallback.html

wp_mediaelement_fallback( string $url ): string

Provides a No-JS Flash fallback as a last resort for audio / video.

Parameters

$url string Required
The media element URL.

Return

string Fallback HTML.

Source

File: wp-includes/media.php. View all references

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 );
}

Hooks

Uses

Uses Description

Changelog

Version Description
3.6.0 Introduced.

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_mediaelement_fallback