wphooks.info - get_site

get_site

(trunk - 5.0-alpha-43304)

The hook occurs in the following file:

wp-includes/ms-blogs.php:
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
		return null;
	}

	/**
	 * Fires after a site is retrieved.
	 *
	 * @since 4.6.0
	 *
	 * @param WP_Site $_site Site data.
	 */
	$_site = apply_filters( 'get_site', $_site );

	return $_site;
}

/**
 * Adds any sites from the given ids to the cache that do not already exist in cache.
 *
 * @since 4.6.0
 * @since 5.0.0 Introduced the `$update_meta_cache` parameter.