admin_head

admin_head

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

See hook in core

Displaying hooks found in version: wordpress-5.3.2

do_action('admin_head') is found 3 times:

  • /wp-admin/admin-header.php line 149
     * Fires in head section for all admin pages.
     *
     * @since 2.1.0
     */
    do_action( 'admin_head' );
    
    if ( get_user_setting( 'mfold' ) == 'f' ) {
    	$admin_body_class .= ' folded';
    }
    
    if ( ! get_user_setting( 'unfold' ) ) {
    
  • /wp-admin/includes/media.php line 570
    	 */
    	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 1998
    	/** 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