public function delta()
    {

        $mergeOptions = $this->__delta( $this->optionsData, $this->_value );


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


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

        return $result;

    }
public function delta()
    {

        $mergeOptions = $this->__delta( $this->optionsData, $this->_value );


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


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

        return $result;

    }
public function delta ( ) { $ mergeOptions = $ this -> __delta ( $ this -> optionsData , $ this -> _value ) ; $ result = WpOption :: updateOrCreate ( [ 'option_name' => $ this -> optionsName ] , [ 'option_value' => json_encode ( $ mergeOptions ) ] ) ; $ this -> _value = ( array ) $ mergeOptions ; return $ result ; }
Execute a delta from the current version of the options and the previous version stored in the database.

@return false|int
Execute a delta from the current version of the options and the previous version stored in the database .