edd_update_payment_status Hook causing error when updating post status?
-
function suspend_support_account( $payment_id, $new_status, $old_status){ //codes here } add_action('edd_update_payment_status', 'suspend_support_account');
Am i using the edd_update_payment_status hook correctly? Cause when i tried using it like the example code above, with & without using any code in the function, it causes an error on my website when i tried updating a payment/order via wp-admin.
I tested edd_complete_purchase hook and was working just fine but the edd_update_payment_status hook always crashes my website. Is there any reason for this or maybe the correct way of using it?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘edd_update_payment_status Hook causing error when updating post status?’ is closed to new replies.