wpseek.com
WordPress开发者和主题制作者的搜索引擎



media_send_to_editor › WordPress Function

Since2.5.0
已弃用n/a
media_send_to_editor ( $html )
参数:
  • (string) $html
    Required: Yes
定义在:
文档:

Adds image HTML to editor.



源码

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