wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



wp_enqueue_media_frame_upload › WordPress Function

Od7.2.0
Przestarzałyn/a
› wp_enqueue_media_frame_upload ( Brak parametrów )
Zdefiniowane na:
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 wp_send_document_isolation_policy_header() isolated, so it rarely needs calling directly.


Źródło

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