get_site filter-hookWP 4.6.0

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()
get_site
wp-includes/ms-site.php 334
$_site = apply_filters( 'get_site', $_site );

Where the hook is used in WordPress

Usage not found.