Function: is_user_option_local

is_user_option_local( string $key, integer $user_id, integer $blog_id )

Check whether a usermeta key has to do with the current blog.

Shortcut: iuol

You can use above key combination to trigger the associated snippet for this function in the WordPress Snippets for Visual Studio Code extension. You can also use this shortcut to search for this function on this website.

Parameters

Name Type(s) Default Value Description
$key string
$user_id integer

Optional. Defaults to current user.

$blog_id integer

Optional. Defaults to current blog.

Returns

boolean

WordPress Developer Newsletter

Stay informed of new chapter releases, important WordPress API updates and more.