_WP_Editors::print_tinymce_scripts()public staticWP 4.8.0

Print (output) the main TinyMCE scripts.

Метод класса: _WP_Editors{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$result = _WP_Editors::print_tinymce_scripts();

Заметки

  • Global. true|false. $concatenate_scripts

Список изменений

С версии 4.8.0 Введена.

Код _WP_Editors::print_tinymce_scripts() WP 6.5.2

public static function print_tinymce_scripts() {
	global $concatenate_scripts;

	if ( self::$tinymce_scripts_printed ) {
		return;
	}

	self::$tinymce_scripts_printed = true;

	if ( ! isset( $concatenate_scripts ) ) {
		script_concat_settings();
	}

	wp_print_scripts( array( 'wp-tinymce' ) );

	echo "<script type='text/javascript'>\n" . self::wp_mce_translation() . "</script>\n";
}