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
    			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
    			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;
    			}