wpview_media_sandbox_styles() WordPress Function

The wpview_media_sandbox_styles() function is used to add extra styles to the media sandbox iframe. This is useful for plugins that need to add their own styles to the iframe.

wpview_media_sandbox_styles() #

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


Return

(string[]) The relevant CSS file URLs.


Top ↑

Source

File: wp-includes/media.php

function wpview_media_sandbox_styles() {
	$version        = 'ver=' . get_bloginfo( 'version' );
	$mediaelement   = includes_url( "js/mediaelement/mediaelementplayer-legacy.min.css?$version" );
	$wpmediaelement = includes_url( "js/mediaelement/wp-mediaelement.css?$version" );

	return array( $mediaelement, $wpmediaelement );
}


Top ↑

Changelog

Changelog
VersionDescription
4.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More