admin_head

admin_head

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

do_action('admin_head') is found 3 times:

  • /wp-admin/admin-header.php line 163
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    * Fires in head section for all admin pages.
     *
     * @since 2.1.0
     */
    do_action( 'admin_head' );
     
    if ( 'f' === get_user_setting( 'mfold' ) ) {
        $admin_body_class .= ' folded';
    }
     
    if ( ! get_user_setting( 'unfold' ) ) {
  • /wp-admin/includes/media.php line 591
    587
    588
    589
    590
    591
    592
    593
    594
    595
    596
    597
    */
    do_action( 'admin_head-media-upload-popup' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
     
    /** This action is documented in wp-admin/admin-header.php */
    do_action( 'admin_head' );
     
    if ( is_string( $content_func ) ) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
  • /wp-admin/includes/template.php line 2175
    2171
    2172
    2173
    2174
    2175
    2176
    2177
    2178
    2179
    2180
    2181
    /** This action is documented in wp-admin/admin-header.php */
    do_action( "admin_head-{$hook_suffix}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
     
    /** This action is documented in wp-admin/admin-header.php */
    do_action( 'admin_head' );
     
    $admin_body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace( '_', '-', get_user_locale() ) ) );
     
    if ( is_rtl() ) {
        $admin_body_class .= ' rtl';
    }

See this hook used in plugins:

Examples using admin_head