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
4601       *
4602       * If the site is set to display right-to-left, the RTL stylesheet link
4603       * will be used instead.
4604       *
4605       * @since 2.3.0
4606       * @param string $stylesheet_link HTML link element for the stylesheet.
4607       * @param string $file            Style handle name or filename (without ".css" extension)
4608       *                                relative to wp-admin/. Defaults to 'wp-admin'.
4609       */
4610      echo apply_filters( 'wp_admin_css', $stylesheet_link, $file );
4611
4612      if ( function_exists( 'is_rtl' ) && is_rtl() ) {
4613           $rtl_stylesheet_link = sprintf(
4614                "<link rel='stylesheet' href='%s' type='text/css' />\n",
4615                esc_url( wp_admin_css_uri( "$file-rtl" ) )
4616           );
4617
4618           /** This filter is documented in wp-includes/general-template.php */
4619           echo apply_filters( 'wp_admin_css', $rtl_stylesheet_link, "$file-rtl" );
4620      }
4621 }
4622
4623 /**
4624  * Enqueues the default ThickBox js and css.
4625  *
4626  * If any of the settings need to be changed, this can be done with another js
4627  * file similar to media-upload.js. That file should
4628  * require array('thickbox') to ensure it is loaded after.