public static function save($name, $value, $autoload = true, $deprecated = '')
    {
        if (false !== static::get($name)) {
            return update_option($name, $value, $autoload);
        } 
        
        return add_option($name, $value, $deprecated, $autoload);
    }
public static function save($name, $value, $autoload = true, $deprecated = '')
    {
        if (false !== static::get($name)) {
            return update_option($name, $value, $autoload);
        } 
        
        return add_option($name, $value, $deprecated, $autoload);
    }
public static function save ( $ name , $ value , $ autoload = true , $ deprecated = '' ) { if ( false !== static :: get ( $ name ) ) { return update_option ( $ name , $ value , $ autoload ) ; } return add_option ( $ name , $ value , $ deprecated , $ autoload ) ; }
Save a new or update an option into the DB

@param string $name Option name
@param string $value Option value
@param string $autoload Should this option be automatically loaded by the function
wp_load_alloptions() (puts options into object cache on each page load)?
@param string $deprecated Deprecated in WordPress

@see https://codex.wordpress.org/Function_Reference/add_option
@see https://codex.wordpress.org/Function_Reference/update_option

@return bool False if option was not added and true if option was added
Save a new or update an option into the DB