WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about site_by_path_segments_count

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/ms-load.php apply_filters 177 /**
* Filters the number of path segments to consider when searching for a site.
*
* @since 3.9.0
*
* @param int|null $segments The number of path segments to consider. WordPress by default looks at
* one path segment following the network path. The function default of
* null only makes sense when you know the requested path should match a site.
* @param string $domain The requested domain.
* @param string $path The requested path, in full.
*/

Hook Parameters

Parameter Type Name Description
int|null $segments The number of path segments to consider. WordPress by default looks at
string $domain The requested domain.
string $path The requested path, in full.