Check that a variable is an instance of a Class Object in WooCommerce
I am running a function whereby I check if a user has a refunded item/s on their previous order and if they do then apply a credit as a negative cart fee at checkout. The function is working for users…