wp_get_video_extensions(): string[]

Returns a filtered list of supported video formats.

Return

string[] List of supported video formats.

Source

	}

	$primary = true;
	array_unshift( $default_types, 'src' );
} else {
	foreach ( $default_types as $ext ) {
		if ( ! empty( $atts[ $ext ] ) ) {
			$type = wp_check_filetype( $atts[ $ext ], wp_get_mime_types() );

			if ( strtolower( $type['ext'] ) === $ext ) {
				$primary = true;

Changelog

VersionDescription
3.6.0Introduced.

User Contributed Notes

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