mycred_delete_user_meta

Description

A wrapper function for delete_user_meta, it assures that point related data is deleted under the correct meta key structure.

Available since version 1.5

Returns

(bool) TRUE if user meta was deleted else FALSE.

Parameters

Param Type Required Description
function mycred_delete_user_meta(
$user_id int Yes

The users numeric ID.

$meta_key string Yes

The meta key id.

$end string No

Optional ending to append to the meta key id. In certain situation on Multisites, the meta key gets the blogs ID appended. The value of $end is then appended after the blog ID, whilst the value of $meta_key is before the blog id. On regular WordPress installations $end is appended onto $meta_key.

$value string No

The meta value. Should be left empty unless the meta data being deleted is not unique.

) { ... }

Examples

No example found.