add_site_meta() wordpress function and usage This text is not used because the data attribute has a value

add_site_meta() wordpress function and usage

Home / WordPress / WordPress Wiki / add_site_meta() wordpress function and usage

 

add_site_meta( int $site_id, string $meta_key, mixed $meta_value, bool $unique = false )
Adds metadata to a site.

Parameters

$site_id

(int) (Required) Site ID.

$meta_key

(string) (Required) Metadata name.

$meta_value

(mixed) (Required) Metadata value. Must be serializable if non-scalar.

$unique

(bool) (Optional) Whether the same key should not be added.

Default value: false

Return

(int|false) Meta ID on success, false on failure.

 

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments