woocommerce_api_edit_product_data

woocommerce_api_edit_product_data

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.9.3

apply_filters('woocommerce_api_edit_product_data') is found 2 times:

  • /includes/legacy/api/v2/class-wc-api-products.php line 336
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    }
     
    $product = wc_get_product( $id );
     
    $data = apply_filters( 'woocommerce_api_edit_product_data', $data, $this );
     
    // Product title.
    if ( isset( $data['title'] ) ) {
        $product->set_name( wc_clean( $data['title'] ) );
    }
  • /includes/legacy/api/v3/class-wc-api-products.php line 390
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    }
     
    $product = wc_get_product( $id );
     
    $data = apply_filters( 'woocommerce_api_edit_product_data', $data, $this );
     
    // Product title.
    if ( isset( $data['title'] ) ) {
        $product->set_name( wc_clean( $data['title'] ) );
    }