Automattic\WooCommerce\Blocks\Domain

Package::set_version_stored_on_db()publicWC 1.0

Sets the version of WooCommerce Blocks in the database. This is useful during the first installation or after the upgrade process.

Method of the class: Package{}

No Hooks.

Return

null. Nothing (null).

Usage

$Package = new Package();
$Package->set_version_stored_on_db();

Package::set_version_stored_on_db() code WC 9.0.1

public function set_version_stored_on_db() {
	update_option( Options::WC_BLOCK_VERSION, $this->get_version() );
}