WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about pre_get_main_site_id

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/class-wp-network.php apply_filters 230 /**
* Filters the main site ID.
*
* Returning a positive integer will effectively short-circuit the function.
*
* @since 4.9.0
*
* @param int|null $main_site_id If a positive integer is returned, it is interpreted as the main site ID.
* @param WP_Network $network The network object for which the main site was detected.
*/

Hook Parameters

Parameter Type Name Description
int|null $main_site_id If a positive integer is returned, it is interpreted as the main site ID.
WP_Network $network The network object for which the main site was detected.