Feature Request: API Response Filters
-
Can you add a filter to the API response args? Specifically here:
https://github.com/Arsenal21/software-license-manager/blob/master/software-license-manager/includes/slm-api-listener.php#L225I would love to see:
$args = apply_filters( 'slm_check_response_args', array( 'result' => 'success', 'message' => 'License key details retrieved.', 'status' => $retLic->lic_status, 'max_allowed_domains' => $retLic->max_allowed_domains, 'email' => $retLic->email, 'registered_domains' => $reg_domains, 'date_created' => $retLic->date_created, 'date_renewed' => $retLic->date_renewed, 'date_expiry' => $retLic->date_expiry, 'product_ref' => $retLic->product_ref, 'first_name' => $retLic->first_name, 'last_name' => $retLic->last_name, 'company_name' => $retLic->company_name, 'txn_id' => $retLic->txn_id, ));
Note the new filter name: slm_check_response_args
This will allow me to pass some additional data to my plugins to secure the download URLs a bit more.
There are other API call responses that would benefit from filters, but this is one I specifically need. Thanks!
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Feature Request: API Response Filters’ is closed to new replies.