home/theblueo/www/wp-content/plugins/loco-translate/src/data/Option.php000064400000002247152141666300022327 0ustar00getKey(); return update_option( $key, $this->getSerializable(), false ); } /** * Retrieve and unserialize this object from WordPress options table * @return bool whether object existed in cache */ public function fetch(){ $key = 'loco_'.$this->getKey(); $data = get_option( $key ); try { $this->setUnserialized($data); } catch( InvalidArgumentException $e ){ return false; } return true; } /** * Delete option from WordPress */ public function remove(){ $key = 'loco_'.$this->getKey(); return delete_option( $key ); } }