- availability:
-
WooCommerce Multilingual Version: 3.1
- description:
-
Add or remove the AJAX actions that need our multi-currency filters.
- type:
- filter
- category:
- Multi-currency Feature
- parameters:
-
add_filter( 'wcml_multi_currency_ajax_actions', 'the_callback_function', 10, 1 );
There is only one parameter passed to this filter: ajax_actions.
- $ajax_actions
- (array) The array including AJAX actions.
- hook example usage:
-
Example
/** * Add this code to the functions.php file of your theme. */ add_filter( 'wcml_multi_currency_ajax_actions', 'add_action_to_multi_currency_ajax', 10, 1 ); function add_action_to_multi_currency_ajax( $ajax_actions ) { $ajax_actions[] = 'ux_quickview'; // Add a AJAX action to the array return $ajax_actions; }