wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



media_send_to_editor › WordPress Function

Od2.5.0
Przestarzałyn/a
› media_send_to_editor ( $html )
Parametry:
  • (string) $html
    Wymagane: Tak
Powrót:
  • (never)
Zdefiniowane na:
Codex:

Adds image HTML to editor.



Źródło

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