woocommerce_variation_options_pricing action-hookWC 2.5.0

Variation options pricing action.


add_action( 'woocommerce_variation_options_pricing', 'wp_kama_woocommerce_variation_options_pricing_action', 10, 3 );

 * Function for `woocommerce_variation_options_pricing` action-hook.
 * @param int     $loop           Position in the loop.
 * @param array   $variation_data Variation data.
 * @param WP_Post $variation      Post data.
 * @return void
function wp_kama_woocommerce_variation_options_pricing_action( $loop, $variation_data, $variation ){

	// action...
Position in the loop.
Variation data.
Post data.


Since 2.5.0 Introduced.

Where the hook is called

In file: /includes/admin/meta-boxes/views/html-variation-admin.php
woocommerce/includes/admin/meta-boxes/views/html-variation-admin.php 185
do_action( 'woocommerce_variation_options_pricing', $loop, $variation_data, $variation );

Where the hook is used in WooCommerce

Usage not found.