get_site
Fires after a site is retrieved.
Usage
add_filter( 'get_site', 'wp_kama_get_site_filter' ); /** * Function for `get_site` filter-hook. * * @param WP_Site $_site Site data. * * @return WP_Site */ function wp_kama_get_site_filter( $_site ){ // filter... return $_site; }
- $_site(WP_Site)
- Site data.
Changelog
Since 4.6.0 | Introduced. |
Where the hook is called
get_site
wp-includes/ms-site.php 334
$_site = apply_filters( 'get_site', $_site );