woocommerce_variation_options

The WooCommerce woocommerce variation options hook.

Description

do_action( 'woocommerce_variation_options', (unknown) $loop, (unknown) $variation_data, (unknown) $variation ); 

Parameters (3)

0. $loop (unknown)
The loop.
1. $variation_data (unknown)
The variation data.
2. $variation (unknown)
The variation.

Usage

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

Defined (1)

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

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