edd_update_payment_status Hook causing error when updating post status?

[ad_1]

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?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer