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 |
---|---|
3235 | * |
3236 | * If the site is set to display right-to-left, the RTL stylesheet link |
3237 | * will be used instead. |
3238 | * |
3239 | * @since 2.3.0 |
3240 | * |
3241 | * @param string $file Style handle name or filename (without ".css" extension) |
3242 | * relative to wp-admin/. Defaults to 'wp-admin'. |
3243 | */ |
3244 | echo apply_filters( 'wp_admin_css', "<link rel='stylesheet' href='" . esc_url( wp_admin_css_uri( $file ) ) . "' type='text/css' />\n", $file ); |
3245 |
|
3246 | if ( function_exists( 'is_rtl' ) && is_rtl() ) { |
3247 | /** This filter is documented in wp-includes/general-template.php */ |
3248 | echo apply_filters( 'wp_admin_css', "<link rel='stylesheet' href='" . esc_url( wp_admin_css_uri( "$file-rtl" ) ) . "' type='text/css' />\n", "$file-rtl" ); |
3249 | } |
3250 | } |
3251 |
|
3252 | /** |
3253 | * Enqueues the default ThickBox js and css. |
3254 | * |
3255 | * If any of the settings need to be changed, this can be done with another js |
3256 | * file similar to media-upload.js. That file should |
3257 | * require array('thickbox') to ensure it is loaded after. |