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 |
---|---|
65 | $rel = isset($obj->extra['alt']) && $obj->extra['alt'] ? 'alternate stylesheet' : 'stylesheet'; |
66 | $title = isset($obj->extra['title']) ? "title='" . esc_attr( $obj->extra['title'] ) . "'" : ''; |
67 |
|
68 | $end_cond = $tag = ''; |
69 | if ( isset($obj->extra['conditional']) && $obj->extra['conditional'] ) { |
70 | $tag .= "<!--[if {$obj->extra['conditional']}]>\n"; |
71 | $end_cond = "<![endif]-->\n"; |
72 | } |
73 |
|
74 | $tag .= apply_filters( 'style_loader_tag', "<link rel='$rel' id='$handle-css' $title href='$href' type='text/css' media='$media' />\n", $handle ); |
75 | if ( 'rtl' === $this->text_direction && isset($obj->extra['rtl']) && $obj->extra['rtl'] ) { |
76 | if ( is_bool( $obj->extra['rtl'] ) ) { |
77 | $suffix = isset( $obj->extra['suffix'] ) ? $obj->extra['suffix'] : ''; |
78 | $rtl_href = str_replace( "{$suffix}.css", "-rtl{$suffix}.css", $this->_css_href( $obj->src , $ver, "$handle-rtl" )); |
79 | } else { |
80 | $rtl_href = $this->_css_href( $obj->extra['rtl'], $ver, "$handle-rtl" ); |
81 | } |
82 |
|
83 | $tag .= apply_filters( 'style_loader_tag', "<link rel='$rel' id='$handle-rtl-css' $title href='$rtl_href' type='text/css' media='$media' />\n", $handle ); |
84 | } |
85 |
|
86 | $tag .= $end_cond; |
87 |
|
88 | if ( $this->do_concat ) { |
89 | $this->print_html .= $tag; |
90 | $this->print_html .= $this->print_inline_style( $handle, false ); |
91 | } else { |
92 | echo $tag; |