delete_user_meta()删除一个用户的meta自定义附加信息

目录

描述

Remove metadata matching criteria from a user.

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.

delete_user_meta() 描述

用法

<?php delete_user_meta$user_id$meta_key$meta_value ?>

delete_user_meta() 用法

参数

$user_id

(integer) (必填) user ID

默认值: None

$meta_key

(string) (必填) Metadata name.

默认值: None

$meta_value

(mixed) (可选) Metadata value.

默认值: ''

delete_user_meta() 参数

返回值

(boolean) 

False for failure. True for success.

delete_user_meta() 返回值

示例

delete_user_meta() 示例

注意

历史

添加于 版本: 3.0

delete_user_meta() 历史

源文件

delete_user_meta() 函数的代码位于 wp-includes/user.php.

delete_user_meta() 源文件

相关