WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
This hook occurs 2 times in this file.
| Line | Code |
|---|---|
| 1177 | |
| 1178 | if ( $wp_styles->query( $handle ) ) { |
| 1179 | if ( $force_echo || did_action( 'wp_print_styles' ) ) // we already printed the style queue. Print this one immediately |
| 1180 | wp_print_styles( $handle ); |
| 1181 | else // Add to style queue |
| 1182 | wp_enqueue_style( $handle ); |
| 1183 | return; |
| 1184 | } |
| 1185 | |
| 1186 | echo apply_filters( 'wp_admin_css', "<link rel='stylesheet' href='" . clean_url( wp_admin_css_uri( $file ) ) . "' type='text/css' />\n", $file ); |
| 1187 | if ( 'rtl' == get_bloginfo( 'text_direction' ) ) |
| 1188 | echo apply_filters( 'wp_admin_css', "<link rel='stylesheet' href='" . clean_url( wp_admin_css_uri( "$file-rtl" ) ) . "' type='text/css' />\n", "$file-rtl" ); |
| 1189 | } |
| 1190 | |
| 1191 | /** |
| 1192 | * Enqueues the default ThickBox js and css. |
| 1193 | * If any of the settings need to be changed, this can be done with another js file |
| 1194 | * similar to media-upload.js and theme-preview.js. That file should require array('thickbox') |
| 1195 | * to ensure it is loaded after. |
| 1196 | */ |
| 1197 | function add_thickbox() { |