• Resolved chienchou

    (@chienchou)


    Hi,

    I want to use the response from $this->get_json_values() to update my order total after order is completed, so I add a custom hook to cryptobox.class.php after line 891.

    This is the hook I added
    do_action(‘cyptopbox_after_get_json_values’, preg_replace(‘/[^\d]/’, ”, $this->orderID) , $data[‘amount’]);

    Can you add this hook to the plugin so my change won’t be lost when the plugin is updated? You are welcome to modify the hook as long as the hook contains the orderID and the response.

    Thanks and let me know if you need anything from my end.

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Add one action hook in cryptobox.class.php’ is closed to new replies.