delete_site_meta_by_key

Advertisement

Summery Summery

Deletes everything from site meta matching meta key.

Syntax Syntax

delete_site_meta_by_key( string $meta_key )

Parameters Parameters

$meta_key

(Required) Metadata key to search for when deleting.

Return Return

(bool) Whether the site meta key was deleted from the database.

Source Source

File: wp-includes/ms-site.php

function update_site_meta( $site_id, $meta_key, $meta_value, $prev_value = '' ) {
	return update_metadata( 'blog', $site_id, $meta_key, $meta_value, $prev_value );
}

Advertisement

Changelog Changelog

Changelog
Version Description
5.1.0 Introduced.

Advertisement

Leave a Reply