admin_head

admin_head

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

See hook in core

Displaying hooks found in version: wordpress-6.5.2

do_action('admin_head') is found 3 times:

  • /wp-admin/admin-header.php line 163
     * 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
    	 */
    	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 2174
    	/** 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