product_variation_linked

product_variation_linked

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

do_action('product_variation_linked') is found 1 times:

  • /includes/data-stores/class-wc-product-data-store-cpt.php line 1490
    			$variation->set_parent_id( $product->get_id() );
    			$variation->set_attributes( $possible_attribute );
    			$variation_id = $variation->save();
    
    			do_action( 'product_variation_linked', $variation_id );
    
    			++$count;
    
    			if ( $limit > 0 && $count >= $limit ) {
    				break;
    			}
    

See this hook used in plugins: