Bsf_Core_Rest::activate_license( WP_REST_Request $request )
Activate License Key.
Description
Parameters
- $request
-
(WP_REST_Request) (Required) Full details about the request.
Return
(WP_REST_Response) Rest Response with access key.
Source
File: admin/bsf-core/classes/class-bsf-core-rest.php
public function activate_license( $request ) { $product_id = $request->get_param( 'product-id' ); $license_key = $request->get_param( 'license-key' ); $data = array( 'privacy_consent' => true, 'terms_conditions_consent' => true, 'product_id' => $product_id, 'license_key' => $license_key, ); return rest_ensure_response( BSF_License_Manager::instance()->bsf_process_license_activation( $data ) ); }
Expand full source code Collapse full source code View on Trac