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 |
|---|---|
| 5059 | * |
| 5060 | * If the site is set to display right-to-left, the RTL stylesheet link |
| 5061 | * will be used instead. |
| 5062 | * |
| 5063 | * @since 2.3.0 |
| 5064 | * @param string $stylesheet_link HTML link element for the stylesheet. |
| 5065 | * @param string $file Style handle name or filename (without ".css" extension) |
| 5066 | * relative to wp-admin/. Defaults to 'wp-admin'. |
| 5067 | */ |
| 5068 | echo apply_filters( 'wp_admin_css', $stylesheet_link, $file ); |
| 5069 | |
| 5070 | if ( function_exists( 'is_rtl' ) && is_rtl() ) { |
| 5071 | $rtl_stylesheet_link = sprintf( |
| 5072 | "<link rel='stylesheet' href='%s' type='text/css' />\n", |
| 5073 | esc_url( wp_admin_css_uri( "$file-rtl" ) ) |
| 5074 | ); |
| 5075 | |
| 5076 | /** This filter is documented in wp-includes/general-template.php */ |
| 5077 | echo apply_filters( 'wp_admin_css', $rtl_stylesheet_link, "$file-rtl" ); |
| 5078 | } |
| 5079 | } |
| 5080 | |
| 5081 | /** |
| 5082 | * Enqueues the default ThickBox js and css. |
| 5083 | * |
| 5084 | * If any of the settings need to be changed, this can be done with another js |
| 5085 | * file similar to media-upload.js. That file should |
| 5086 | * require array('thickbox') to ensure it is loaded after. |