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.
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 ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.0.0 | Introduced. |