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

do_action('product_variation_linked') is found 1 times:

  • /includes/data-stores/class-wc-product-data-store-cpt.php line 1508
    1504
    1505
    1506
    1507
    1508
    1509
    1510
    1511
    1512
    1513
    1514
    $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: