Inventory_Presser_Addon::sanitize_and_activate_license_key( $sanitized,  $input,  $license_item,  $license_key_key_name = 'license_key' )


Source Source

File: includes/class-addon.php

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