wphooks.info - print_default_editor_scripts

print_default_editor_scripts

*** New in v4.8 ***

The hook occurs in the following file:

wp-includes/class-wp-editor.php:
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
		<?php

		self::print_tinymce_scripts();

		/**
		 * Fires when the editor scripts are loaded for later initialization,
		 * after all scripts and settings are printed.
		 *
		 * @since 4.8.0
		 */
		do_action( 'print_default_editor_scripts' );

		self::wp_link_dialog();
	}

	public static function get_mce_locale() {
		if ( empty( self::$mce_locale ) ) {
			$mce_locale = get_user_locale();
			self::$mce_locale = empty( $mce_locale ) ? 'en' : strtolower( substr( $mce_locale, 0, 2 ) ); // ISO 639-1
		}