woocommerce_variation_options_download

Woocommerce_variation_options_download action.

Description

do_action( 'woocommerce_variation_options_download', (int) $loop, (array) $variation_data, (WP_Post) $variation ); 

Parameters (3)

0. $loop (int)
The loop.
1. $variation_data (array)
The variation data.
2. $variation (WP_Post)
The variation.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'woocommerce_variation_options_download', $loop, $variation_data, $variation ); 
The following example is for adding a hook callback.
  1. // define the woocommerce_variation_options_download callback 
  2. function action_woocommerce_variation_options_download( $loop, $variation_data, $variation ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'woocommerce_variation_options_download', 'action_woocommerce_variation_options_download', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'woocommerce_variation_options_download', 'action_woocommerce_variation_options_download', 10, 3 ); 

Defined (1)

The action is defined in the following location(s).

/includes/admin/meta-boxes/views/html-variation-admin.php  
  1. do_action( 'woocommerce_variation_options_download', $loop, $variation_data, $variation );