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.3.3

do_action('product_variation_linked') is found 1 times:

  • /includes/data-stores/class-wc-product-data-store-cpt.php line 1414
    			$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: