set_user_setting

Advertisement

Summery Summery

Adds or updates user interface setting.

Syntax Syntax

set_user_setting( string $name, string $value )

Description Description

Both $name and $value can contain only ASCII letters, numbers, hyphens, and underscores.

This function has to be used before any output has started as it calls setcookie().

Parameters Parameters

$name

(string) (Required) The name of the setting.

$value

(string) (Required) The value for the setting.

Return Return

(bool|null) True if set successfully, false if not. Null if the current user can't be established.

Source Source

File: wp-includes/option.php

				AND b.meta_value < %d",
				$wpdb->esc_like( '_site_transient_' ) . '%',
				$wpdb->esc_like( '_site_transient_timeout_' ) . '%',
				time()
			)
		);
	}
}

/**

Advertisement

Changelog Changelog

Changelog
Version Description
2.8.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.