Support » Plugin: Software License Manager » Feature Request: API Response Filters

  • Resolved Brian DiChiara

    (@briandichiara)


    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#L225

    I 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!

    • This topic was modified 11 months, 3 weeks ago by  Brian DiChiara. Reason: updated example code to match repo

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support mbrsolution

    (@mbrsolution)

    Hi, thank you for your suggestion/request.

    I have submitted a message to the developers to investigate further this request.

    Kind regards.

    Plugin Author mra13

    (@mra13)

    Thank you. I have added a filter and released a new version that you should be able to use now.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Feature Request: API Response Filters’ is closed to new replies.