You can match based on the key, or key and value. Removing based on key and value, will keep from removing duplicate metadata with the same key. It also allows removing all metadata matching key, if needed. For historical reasons both the meta key and the meta value are expected to be "slashed" (slashes escaped) on input.
Parameters
$site_idint
Site ID.
$meta_keystring
Metadata name.
$meta_valuemixedoptional
Metadata value. If provided, rows will only be removed that match the value. Must be serializable if non-scalar. Default empty.Default: ''
Signature, return type and hooks compared across 5 parsed releases.
About this page
Parsed data
Generated from the wordpress-develop 7.1.0 tag, from src/wp-includes/ms-site.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.