WordPress.org

Codex

Function Reference/delete user option

Contents

Description

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.

Usage

<?php delete_user_option$user_id$option_name$global ); ?>

Parameters

$user_id
(int) (required) User ID
Default: None
$option_name
(string) (required) User option name.
Default: None
$global
(boolean) (optional) Optional. Whether option name is global or blog specific. Default false (blog specific).
Default: false

Return Values

(unknown) 

Change Log

Since: 3.0

Source File

delete_user_option() is located in wp-includes/user.php