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
2682       *
2683       * If the site is set to display right-to-left, the RTL stylesheet link
2684       * will be used instead.
2685       *
2686       * @since 2.3.0
2687       *
2688       * @param string $file Style handle name or filename (without ".css" extension)
2689       *                     relative to wp-admin/. Defaults to 'wp-admin'.
2690       */
2691      echo apply_filters( 'wp_admin_css', "<link rel='stylesheet' href='" . esc_url( wp_admin_css_uri( $file ) ) . "' type='text/css' />\n", $file );
2692
2693      if ( function_exists( 'is_rtl' ) && is_rtl() ) {
2694           /** This filter is documented in wp-includes/general-template.php */
2695           echo apply_filters( 'wp_admin_css', "<link rel='stylesheet' href='" . esc_url( wp_admin_css_uri( "$file-rtl" ) ) . "' type='text/css' />\n", "$file-rtl" );
2696      }
2697 }
2698
2699 /**
2700  * Enqueues the default ThickBox js and css.
2701  *
2702  * If any of the settings need to be changed, this can be done with another js
2703  * file similar to media-upload.js. That file should
2704  * require array('thickbox') to ensure it is loaded after.