wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



media_send_to_editor › WordPress Function

Depuis2.5.0
Dépréciéen/a
media_send_to_editor ( $html )
Paramètres:
  • (string) $html
    Requis: Oui
Défini(e) dans:
Codex:

Adds image HTML to editor.



Source

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;
}