Uses
Uses | Description |
---|---|
wp-includes/meta.php: add_metadata() | Adds metadata for the specified object. |
Adds metadata to a site.
(int) (Required) Site ID.
(string) (Required) Metadata name.
(mixed) (Required) Metadata value. Must be serializable if non-scalar.
(bool) (Optional) Whether the same key should not be added.
Default value: false
(int|false) Meta ID on success, false on failure.
File: wp-includes/ms-site.php
function add_site_meta( $site_id, $meta_key, $meta_value, $unique = false ) { return add_metadata( 'blog', $site_id, $meta_key, $meta_value, $unique ); }
Version | Description |
---|---|
5.1.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/add_site_meta