Retrieves metadata for a site.
$site_idintrequired
$keystringoptional
Default:''
$singlebooloptional
$key is not specified.Default:false
$single is false.$single is true.$site_id (non-numeric, zero, or negative value).$single is false.$single is true.function get_site_meta( $site_id, $key = '', $single = false ) {
return get_metadata( 'blog', $site_id, $key, $single );
}
| Version | Description |
|---|---|
| 5.1.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/get_site_meta