wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



media_send_to_editor › WordPress Function

Seit2.5.0
Veraltetn/v
media_send_to_editor ( $html )
Parameter:
  • (string) $html
    Erforderlich: Ja
Gibt zurück:
  • (never)
Definiert in:
Codex:

Adds image HTML to editor.



Quellcode

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