wp_admin_css

wp_admin_css

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('wp_admin_css') is found 2 times:

  • /wp-includes/general-template.php line 4926
    	 * @param string $stylesheet_link HTML link element for the stylesheet.
    	 * @param string $file            Style handle name or filename (without ".css" extension)
    	 *                                relative to wp-admin/. Defaults to 'wp-admin'.
    	 */
    	echo apply_filters( 'wp_admin_css', $stylesheet_link, $file );
    
    	if ( function_exists( 'is_rtl' ) && is_rtl() ) {
    		$rtl_stylesheet_link = sprintf(
    			"<link rel='stylesheet' href='%s' type='text/css' />\n",
    			esc_url( wp_admin_css_uri( "$file-rtl" ) )
    		);
    
  • /wp-includes/general-template.php line 4935
    			esc_url( wp_admin_css_uri( "$file-rtl" ) )
    		);
    
    		/** This filter is documented in wp-includes/general-template.php */
    		echo apply_filters( 'wp_admin_css', $rtl_stylesheet_link, "$file-rtl" );
    	}
    }
    
    /**
     * Enqueues the default ThickBox js and css.
     *