Add filters when we return tokens for customers or orders.

This commit is contained in:
Justin Shreve 2016-02-04 12:35:07 -08:00
parent bfa9437a43
commit 4b93f23ac5
1 changed files with 2 additions and 2 deletions

View File

@ -163,7 +163,7 @@ class WC_Payment_Tokens {
} }
} }
return $tokens; return apply_filters( 'woocommerce_get_customer_payment_tokens', $tokens, $customer_id );
} }
/** /**
@ -202,7 +202,7 @@ class WC_Payment_Tokens {
} }
} }
return $tokens; return apply_filters( 'woocommerce_get_order_payment_tokens', $tokens, $order_id );
} }
/** /**