Support » Plugin: License Manager for WooCommerce » Send additional data as JSON response after activation

  • Resolved stevewolligandt

    (@stevewolligandt)


    Hi Drazen Bebic!

    I hope this question has not been asked before. At least I could not find exactly the same.

    First, your plugin is great! We will soon launch our shop that uses your plugin! 🙂

    What I want to do is send some additional data in the response of a key activation request in the REST API.

    Right now your plugin gives information if the activation was successful and if yes when and who created the key and to which product ID it belongs to (and some more data).

    Now I want to add another field in the JSON object of the response that depends on the product ID of the key. (internally my plan is to lookup a database that contains commands our client application should do after the activation. But that does not relate your plugin itself).

    I am new to WordPress and Woocommerce so basically I need to know if this is possible at all and which file of the plugin I would need to edit to send additional data.
    (I read about filters but I am not entirely sure if this also works with your plugin).

    Best regards
    Steve

    === EDIT ===
    I guess it will be somewhere around here, right? :
    https://github.com/drazenbebic/license-manager-for-woocommerce/blob/00f7275071ca52b7ea7e921c582786ad4e4f81ca/includes/api/v2/Licenses.php#L581

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.