public function update( $options = [] )
    {

        if ( is_null( $this->row ) ) {
            return $this->reset();
        }

        $mergeOptions = array_replace_recursive( $this->_value, $options );

        $result = WpOption::updateOrCreate(
            ['option_name' => $this->optionsName],
            ['option_value' => json_encode( $mergeOptions )]
        );


        $this->_value = (array) $mergeOptions;

        return $result;

    }
public function update( $options = [] )
    {

        if ( is_null( $this->row ) ) {
            return $this->reset();
        }

        $mergeOptions = array_replace_recursive( $this->_value, $options );

        $result = WpOption::updateOrCreate(
            ['option_name' => $this->optionsName],
            ['option_value' => json_encode( $mergeOptions )]
        );


        $this->_value = (array) $mergeOptions;

        return $result;

    }
public function update ( $ options = [ ] ) { if ( is_null ( $ this -> row ) ) { return $ this -> reset ( ) ; } $ mergeOptions = array_replace_recursive ( $ this -> _value , $ options ) ; $ result = WpOption :: updateOrCreate ( [ 'option_name' => $ this -> optionsName ] , [ 'option_value' => json_encode ( $ mergeOptions ) ] ) ; $ this -> _value = ( array ) $ mergeOptions ; return $ result ; }
Update a branch of options.

@param array $options

@return false|int
Update a branch of options .