- availability:
-
WooCommerce Multilingual Version: 3.9
- description:
-
Run actions when the currency switcher widget is being generated.
- type:
- action
- category:
- Multi-currency Feature
- parameters:
-
add_action( 'wcml_currency_switcher', 'the_callback_function' );
This action has no parameters.
- hook example usage:
-
Example
add_action( 'wcml_currency_switcher', 'my_custom_action' ); function my_custom_action() { // my custom action }