pmpro_default_currency
The Paid Memberships Pro pmpro default currency hook.
Description
Parameters (1)
- 0. $usd (string) =>
"USD"
- The usd.
Usage
- To run the hook, copy the example below.
- $usd = apply_filters( 'pmpro_default_currency', $usd );
- if ( !empty( $usd ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the pmpro_default_currency callback
- function filter_pmpro_default_currency( $usd ) {
- // make filter magic happen here...
- return $usd;
- };
- // add the filter
- add_filter( 'pmpro_default_currency', 'filter_pmpro_default_currency', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'pmpro_default_currency', 'filter_pmpro_default_currency', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /includes/currencies.php
- $pmpro_default_currency = apply_filters("pmpro_default_currency", "USD");