RestroPress

⌘K
  1. Home
  2. Docs
  3. RestroPress
  4. Developer Docs
  5. Filters
  6. rpress_payment_currency_code

rpress_payment_currency_code

This filter is applied to use the Payment currency code, it is including two parameters.
$currency ->is a string to get currency.
$ID ->is used to get id.

function get_currency_code( $currency ) {
return $currency //return payment currency code.
}
add_filter( 'rpress_payment_currency_code', 'get_currency_code', 10,2 );

 

How can we help?