Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: wp_admin_css_uri

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

Line Code
1122                $color = $_wp_admin_css_colors[$color];
1123                $_file = $color->url;
1124                $_file = ('css/colors-rtl' == $file) ? str_replace('.css','-rtl.css',$_file) : $_file;
1125           } else {
1126                $_file = get_option( 'siteurl' ) . "/wp-admin/$file.css";
1127           }
1128      }
1129      $_file = add_query_arg( 'version', get_bloginfo( 'version' ),  $_file );
1130
1131      return apply_filters( 'wp_admin_css_uri', $_file, $file );
1132 }
1133
1134 function wp_admin_css( $file = 'wp-admin' ) {
1135
1136      echo apply_filters( 'wp_admin_css', "<link rel='stylesheet' href='" . wp_admin_css_uri( $file ) . "' type='text/css' />\n", $file );
1137      if ( 'rtl' == get_bloginfo( 'text_direction' ) ) {
1138           $rtl = ( 'wp-admin' == $file ) ? 'rtl' : "$file-rtl";
1139           echo apply_filters( 'wp_admin_css', "<link rel='stylesheet' href='" . wp_admin_css_uri( $rtl ) . "' type='text/css' />\n", $rtl );
1140      }