wphooks.info - print_default_editor_scripts

print_default_editor_scripts

(trunk - 5.0-alpha-42177)

The hook occurs in the following file:

wp-includes/class-wp-editor.php:
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
		if ( $user_can_richedit ) {
			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
		}