输出传统媒体上载标头。

原型

media_upload_header()

源文件

路径:wp-admin/includes/media.php

<?php
...
function media_upload_header() {
	$post_id = isset( $_REQUEST['post_id'] ) ? intval( $_REQUEST['post_id'] ) : 0;
	echo '<script type="text/javascript">post_id = ' . $post_id . ';</script>';
	if ( empty( $_GET['chromeless'] ) ) {
		echo '<div id="media-upload-header">';
		the_media_upload_tabs();
		echo '</div>';
	}
}
...
?>

其他

英文文档:https://developer.wordpress.org/reference/functions/media_upload_header/