Your IP : 216.73.216.171


Current Path : /home/ereika83/public_html/wp-content/plugins/snapshot/lib/Snapshot/Model/Storage/
Upload File :
Current File : /home/ereika83/public_html/wp-content/plugins/snapshot/lib/Snapshot/Model/Storage/Sitemeta.php

<?php // phpcs:ignore
/**
 * Storage implementation in WP site options
 *
 * @package snapshot
 */

/**
 * Site options storage implementation class
 */
class Snapshot_Model_Storage_Sitemeta extends Snapshot_Model_Storage {

	public function load() {
		$str = get_site_option( $this->get_namespace() );
		$this->_data = (array) $this->decode( $str );

		return ! empty( $this->_data );
	}

	public function save() {
		$str = $this->encode( $this->_data );
		return !!update_site_option( $this->get_namespace(), $str );
	}

	public function remove_trace() {
		return delete_site_option( $this->get_namespace() );
	}
}