Deletes everything from site meta matching meta key.
Parameters
$meta_key
stringrequired- Metadata key to search for when deleting.
Source
function delete_site_meta_by_key( $meta_key ) {
return delete_metadata( 'blog', null, $meta_key, '', true );
}
Changelog
Version | Description |
---|---|
5.1.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.