How to get the id for a Payment Method in WooCommerce
If you have access to an order object in WooCommerce then it is possible to call the get_payment_method()function to see what payment method was used for the order. You could use use the call in an if statement to run some logic if a particular payment method was used. Here’s some code to illustrate what … Read more