media_send_to_editor( string $html )

Adds image html to editor

Description Description

Parameters Parameters


(string) (Required)

Top ↑

Source Source

File: wp-admin/includes/media.php

function media_send_to_editor( $html ) {
<script type="text/javascript">
var win = window.dialogArguments || opener || parent || top;
win.send_to_editor( <?php echo wp_json_encode( $html ); ?> );

Top ↑

Changelog Changelog

Version Description
2.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.