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.
Line | Code |
---|---|
205 | * |
206 | * @param null|false|WP_Site $site Site value to return by path. Default null |
207 | * to continue retrieving the site. |
208 | * @param string $domain The requested domain. |
209 | * @param string $path The requested path, in full. |
210 | * @param int|null $segments The suggested number of paths to consult. |
211 | * Default null, meaning the entire path was to be consulted. |
212 | * @param string[] $paths The paths to search for, based on $path and $segments. |
213 | */ |
214 | $pre = apply_filters( 'pre_get_site_by_path', null, $domain, $path, $segments, $paths ); |
215 | if ( null !== $pre ) { |
216 | if ( false !== $pre && ! $pre instanceof WP_Site ) { |
217 | $pre = new WP_Site( $pre ); |
218 | } |
219 | return $pre; |
220 | } |
221 |
|
222 | /* |
223 | * @todo |