media_send_to_editor() – Adds image html to editor
You appear to be a bot. Output may be restricted
Description
Adds image HTML to editor.
Usage
media_send_to_editor( $html );
Parameters
- $html
- ( string ) required –
Returns
void
Source
File name: wordpress/wp-admin/includes/media.php
Lines:
1 to 9 of 9
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 ); ?> ); </script> <?php exit; }