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


if ( $atts['images'] ) {
	$thumb_id = get_post_thumbnail_id( $attachment->ID );
	if ( ! empty( $thumb_id ) ) {
		list( $src, $width, $height ) = wp_get_attachment_image_src( $thumb_id, 'full' );
		$track['image']               = compact( 'src', 'width', 'height' );
		list( $src, $width, $height ) = wp_get_attachment_image_src( $thumb_id, 'thumbnail' );
		$track['thumb']               = compact( 'src', 'width', 'height' );
	} else {
		$src            = wp_mime_type_icon( $attachment->ID, '.svg' );
		$width          = 48;

Changelog

VersionDescription
3.6.0Introduced.

User Contributed Notes

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