wpview_media_sandbox_styles(): string[]

In this article

Returns the URLs for CSS files used in an iframe-sandbox’d TinyMCE media view.

Return

string[] The relevant CSS file URLs.

Source


if ( ! empty( $found_srcs[0] ) ) {
	foreach ( $found_srcs as $src ) {
		if ( isset( $src[2] ) && ! in_array( $src[2], $srcs, true ) ) {
			$srcs[] = $src[2];
		}
	}

Changelog

VersionDescription
4.0.0Introduced.

User Contributed Notes

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