Webhook_Versioning::maybe_update_webhooks()

Summary

No summary available.

Return

(void)


Source

File: src/BigCommerce/Webhooks/Webhook_Versioning.php

	public function maybe_update_webhooks() {
		if ( ! get_option( Import::ENABLE_WEBHOOKS , 1 ) ) {
			return;
		}

		$version_option = 'schema-' . self::class;
		if ( (int) get_option( $version_option, 0 ) !== self::VERSION ) {
			$this->update_webhooks();
			update_option( 'schema-' . self::class, self::VERSION );
		}
	}

User Contributed Notes

You must log in before being able to contribute a note or feedback.