wp_mediaelement_fallback( string $url ): string

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

Parameters

$urlstringrequired
The media element URL.

Return

string Fallback HTML.

Source

$theme_width  = empty( $content_width ) ? $default_width : ( $content_width - $outer );
$theme_height = empty( $content_width ) ? $default_height : round( ( $default_height * $theme_width ) / $default_width );

$data = array(
	'type'         => $atts['type'],
	// Don't pass strings to JSON, will be truthy in JS.
	'tracklist'    => wp_validate_boolean( $atts['tracklist'] ),
	'tracknumbers' => wp_validate_boolean( $atts['tracknumbers'] ),
	'images'       => wp_validate_boolean( $atts['images'] ),
	'artists'      => wp_validate_boolean( $atts['artists'] ),
);

Changelog

VersionDescription
3.6.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.