woocommerce_api_edit_product_attribute_data

woocommerce_api_edit_product_attribute_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_data') is found 2 times:

  • /includes/legacy/api/v2/class-wc-api-products.php line 2062
    2058
    2059
    2060
    2061
    2062
    2063
    2064
    2065
    2066
    2067
    if ( ! current_user_can( 'manage_product_terms' ) ) {
        throw new WC_API_Exception( 'woocommerce_api_user_cannot_edit_product_attribute', __( 'You do not have permission to edit product attributes', 'woocommerce' ), 401 );
    }
     
    $data      = apply_filters( 'woocommerce_api_edit_product_attribute_data', $data, $this );
    $attribute = $this->get_product_attribute( $id );
     
    if ( is_wp_error( $attribute ) ) {
        return $attribute;
    }
  • /includes/legacy/api/v3/class-wc-api-products.php line 2616
    2612
    2613
    2614
    2615
    2616
    2617
    2618
    2619
    2620
    2621
    if ( ! current_user_can( 'manage_product_terms' ) ) {
        throw new WC_API_Exception( 'woocommerce_api_user_cannot_edit_product_attribute', __( 'You do not have permission to edit product attributes', 'woocommerce' ), 401 );
    }
     
    $data      = apply_filters( 'woocommerce_api_edit_product_attribute_data', $data, $this );
    $attribute = $this->get_product_attribute( $id );
     
    if ( is_wp_error( $attribute ) ) {
        return $attribute;
    }