wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
media_upload_header › WordPress Function
Seit2.5.0
Veraltetn/v
› media_upload_header ( Keine Parameter )
| Definiert in: |
|
| Codex: |
Outputs the legacy media upload header.
Ähnliche Funktionen: wp_media_upload_handler, media_upload_form_handler, media_upload_gallery, media_upload_audio, media_upload_image
Quellcode
function media_upload_header() {
$post_id = isset( $_REQUEST['post_id'] ) ? (int) $_REQUEST['post_id'] : 0;
wp_print_inline_script_tag(
sprintf( 'var post_id = %s;', wp_json_encode( $post_id, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ) )
);
if ( empty( $_GET['chromeless'] ) ) {
echo '<div id="media-upload-header">';
the_media_upload_tabs();
echo '</div>';
}
}