Inventory_Presser_Addon::sanitize_and_activate_license_key( $sanitized,  $input,  $license_item )


Source Source

File: includes/class-addon.php

		public static function sanitize_and_activate_license_key( $sanitized, $input, $license_item )
		{				
			if ( isset( $input['license_key'] ) )
			{
				$sanitized['license_key'] = sanitize_text_field( $input['license_key'] );
				self::make_sure_license_is_activated( $license_item, $sanitized['license_key'] );
			}
			return $sanitized;
		}