Inventory_Presser_Addon::sanitize_and_activate_license_key( mixed $sanitized, mixed $input, mixed $license_item, mixed $license_key_key_name = 'license_key' )
sanitize_and_activate_license_key
On This Page
Parameters Parameters
- $sanitized
-
(mixed) (Required)
- $input
-
(mixed) (Required)
- $license_item
-
(mixed) (Required)
- $license_key_key_name
-
(mixed) (Optional)
Default value: 'license_key'
Return Return
(void)
Source Source
File: includes/addon/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; }
Expand full source codeCollapse full source codeView on Github