woocommerce_api_edit_product_attribute_term_data

woocommerce_api_edit_product_attribute_term_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_attribute_term_data') is found 1 times:

  • /includes/legacy/api/v3/class-wc-api-products.php line 2930
    2926
    2927
    2928
    2929
    2930
    2931
    2932
    2933
    2934
    2935
    2936
    if ( ! $taxonomy ) {
        throw new WC_API_Exception( 'woocommerce_api_invalid_product_attribute_id', __( 'A product attribute with the provided ID could not be found', 'woocommerce' ), 404 );
    }
     
    $data = apply_filters( 'woocommerce_api_edit_product_attribute_term_data', $data, $this );
     
    $args = array();
     
    // Update name.
    if ( isset( $data['name'] ) ) {
        $args['name'] = wc_clean( wp_unslash( $data['name'] ) );