Tribe__PUE__Checker::update_key( string $license_key, string $type = 'local' )

Update license key for specific type of license.


Parameters

$license_key

(string) (Required) The new license key value.

$type

(string) (Optional) The type of key to update (network or local).

Default value: 'local'


Top ↑

Source

File: src/Tribe/PUE/Checker.php

		public function update_key( $license_key, $type = 'local' ) {

			if ( 'network' === $type && is_multisite() ) {
				update_network_option( null, $this->pue_install_key, sanitize_text_field( $license_key ) );
			} elseif ( 'local' === $type ) {
				update_option( $this->pue_install_key, sanitize_text_field( $license_key ) );
			}

		}