Function: delete_usermeta

delete_usermeta( integer $user_id, string $meta_key, mixed $meta_value )

Remove user meta data.

Parameters

Name Type(s) Default Value Description
$user_id integer

User ID.

$meta_key string

Metadata key.

$meta_value mixed ''

Metadata value.

Returns

boolean

True deletion completed and false if user_id is not a number.

WordPress Developer Newsletter

Stay on top of the latest WordPress API changes, developer tool updates, security alerts and more.