public static function set($option, $value, $type = '', $id = 0)
    {
        /**
         * Works on option's value.
         *
         * @var string $option
         * @param mixed $value
         * @return array $value
         */
        $value = apply_filters('ol_zeus_option_set_'.$option, $value);

        // Set value into DB with autoload
        if (!empty($id)) {
            $func = 'term' === $type ? 'updateTermMeta' : 'updatePostMeta';
            self::$func($id, $option, $value);
        } else if (false === get_option($option)) {
            self::add($option, $value);
        } else {
            self::update($option, $value);
        }
    }
public static function set($option, $value, $type = '', $id = 0)
    {
        /**
         * Works on option's value.
         *
         * @var string $option
         * @param mixed $value
         * @return array $value
         */
        $value = apply_filters('ol_zeus_option_set_'.$option, $value);

        // Set value into DB with autoload
        if (!empty($id)) {
            $func = 'term' === $type ? 'updateTermMeta' : 'updatePostMeta';
            self::$func($id, $option, $value);
        } else if (false === get_option($option)) {
            self::add($option, $value);
        } else {
            self::update($option, $value);
        }
    }
public static function set ( $ option , $ value , $ type = '' , $ id = 0 ) { /**
         * Works on option's value.
         *
         * @var string $option
         * @param mixed $value
         * @return array $value
         */ $ value = apply_filters ( 'ol_zeus_option_set_' . $ option , $ value ) ; // Set value into DB with autoload if ( ! empty ( $ id ) ) { $ func = 'term' === $ type ? 'updateTermMeta' : 'updatePostMeta' ; self :: $ func ( $ id , $ option , $ value ) ; } else if ( false === get_option ( $ option ) ) { self :: add ( $ option , $ value ) ; } else { self :: update ( $ option , $ value ) ; } }
Set a value into options

@param string    $option
@param string    $value
@param string    $type
@param integer   $id
Set a value into options