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
    			}
    
    			$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
    			}
    
    			$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'] ) );
    			}