首页 WordPress函数大全 delete_user_option()

delete_user_option()

2020-05-01 / 3658阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

delete_user_option( int $user_id, string $option_name, bool $global = false )

Delete user option with global blog capability.

描述

User options are just like user metadata except that they have support for global blog options. If the ‘global’ parameter is false, which it is by default it will prepend the WordPress table prefix to the option name.

参数

$user_id

(int)
(Required)
User ID

$option_name

(string)
(Required)
User option name.

$global

(bool)
(Optional)
Whether option name is global or blog specific. Default false (blog specific).

Default value: false

返回

(bool) True on success, false on failure.

大家谈论
    我的见解