-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Passing ID when getting currency through give_get_currency(). #2214
Conversation
@emgk please resolve the failing unit tests. |
* * | ||
* @return int $decimals | ||
*/ | ||
function give_currency_decimal_filter() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DevinWalker This function is deprecated. I also removed filter because give_get_price_decimals
will handle this internally.
* @return mixed | ||
*/ | ||
function give_get_price_decimals( $donation_id = null ) { | ||
$setting = give_get_currency_formatting_settings( $donation_id ); | ||
function give_get_price_decimals( $donation_or_form_id = null, $currency = '' ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DevinWalker I updated give_get_price_decimals
function.
* @return string The currency code | ||
*/ | ||
function give_get_currency( $id = null ) { | ||
function give_get_currency( $donation_or_form_id = null, $args = array() ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DevinWalker I updated give_get_currency
@DevinWalker Merging this PR to core let me know if you have any suggestion or issue |
Description
This PR will resolve #2197.
Passing form_id or payment_id while getting the Give currency.
Checklist: