wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



media_send_to_editor › WordPress Function

Desde2.5.0
Obsoleton/a
› media_send_to_editor ( $html )
Parâmetros:
  • (string) $html
    Required: Yes
Retorna:
  • (never)
Definido em:
Codex:

Adds image HTML to editor.



Fonte

function media_send_to_editor( $html ) {
	wp_print_inline_script_tag(
		sprintf(
			'( window.dialogArguments || opener || parent || top ).send_to_editor( %s );',
			wp_json_encode( $html, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES )
		)
	);
	exit;
}