2020-05-01 / 3266阅 / 悠然
Retrieves site data given a site ID or site object.
Site data will be cached and returned after being passed through a filter. If the provided site is empty, the current site global will be used.
(WP_Site|int|null)
(Optional)
Site to retrieve. Default is the current site.
Default value: null
(WP_Site|null) The site object or null if not found.