add_option Wordpress function


Description:

Add a new option.


Syntax:


Arguments:

(string) $option Name of option to add. Expected to not be SQL-escaped.
(mixed) $value Optional. Option value, can be anything. Expected to not be SQL-escaped.
(mixed) $deprecated Optional. Description. Not used anymore.
(bool) $autoload Optional. Default is enabled. Whether to load the option when WordPress starts up.


Return Type:

(bool) False if option was not added and true if option was added.


Define At:

wp-includes/option.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/add_option


0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×