Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: print_default_editor_scripts

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
931                self::print_tinymce_scripts();
932           }
933
934           /**
935            * Fires when the editor scripts are loaded for later initialization,
936            * after all scripts and settings are printed.
937            *
938            * @since 4.8.0
939            */
940           do_action( 'print_default_editor_scripts' );
941
942           self::wp_link_dialog();
943      }
944
945      public static function get_mce_locale() {
946           if ( empty( self::$mce_locale ) ) {
947                $mce_locale       = get_user_locale();
948                self::$mce_locale = empty( $mce_locale ) ? 'en' : strtolower( substr( $mce_locale, 0, 2 ) ); // ISO 639-1
949           }