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
922                self::print_tinymce_scripts();
923           }
924
925           /**
926            * Fires when the editor scripts are loaded for later initialization,
927            * after all scripts and settings are printed.
928            *
929            * @since 4.8.0
930            */
931           do_action( 'print_default_editor_scripts' );
932
933           self::wp_link_dialog();
934      }
935
936      public static function get_mce_locale() {
937           if ( empty( self::$mce_locale ) ) {
938                $mce_locale       = get_user_locale();
939                self::$mce_locale = empty( $mce_locale ) ? 'en' : strtolower( substr( $mce_locale, 0, 2 ) ); // ISO 639-1
940           }