wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_enqueue_media_frame_upload › WordPress Function

Seit7.2.0
Veraltetn/v
› wp_enqueue_media_frame_upload ( Keine Parameter )
Definiert in:
Codex:

Enqueues the script that routes uploads started from a media frame through the client-side media processing pipeline.

Covers every wp.media frame that uploads through wp.Uploader: the Media Library grid and the media modal the block editor, the site editor and the block widgets screen open. wp_enqueue_media() calls this on any screen that was cross-origin isolated, so it rarely needs calling directly.


Quellcode

function wp_enqueue_media_frame_upload(): void {
	_wp_enqueue_media_upload_pipeline_script( 'media-frame-upload' );
}