Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: wp_admin_css

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

This hook occurs 2 times in this file.

Line Code
2132
2133      if ( $wp_styles->query( $handle ) ) {
2134           if ( $force_echo || did_action( 'wp_print_styles' ) ) // we already printed the style queue.  Print this one immediately
2135                wp_print_styles( $handle );
2136           else // Add to style queue
2137                wp_enqueue_style( $handle );
2138           return;
2139      }
2140
2141      echo apply_filters( 'wp_admin_css', "<link rel='stylesheet' href='" . esc_url( wp_admin_css_uri( $file ) ) . "' type='text/css' />\n", $file );
2142      if ( is_rtl() )
2143           echo apply_filters( 'wp_admin_css', "<link rel='stylesheet' href='" . esc_url( wp_admin_css_uri( "$file-rtl" ) ) . "' type='text/css' />\n", "$file-rtl" );
2144 }
2145
2146 /**
2147  * Enqueues the default ThickBox js and css.
2148  *
2149  * If any of the settings need to be changed, this can be done with another js
2150  * file similar to media-upload.js and theme-preview.js. That file should
2151  * require array('thickbox') to ensure it is loaded after.
2152  *