Add filters when we return tokens for customers or orders.
This commit is contained in:
parent
bfa9437a43
commit
4b93f23ac5
|
@ -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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue