woocommerce_api_edit_order_note_data

woocommerce_api_edit_order_note_data

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

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_api_edit_order_note_data') is found 2 times:

  • /includes/legacy/api/v2/class-wc-api-orders.php line 1377
    			if ( $note->comment_post_ID != $order->get_id() ) {
    				throw new WC_API_Exception( 'woocommerce_api_invalid_order_note_id', __( 'The order note ID provided is not associated with the order', 'woocommerce' ), 400 );
    			}
    
    			$data = apply_filters( 'woocommerce_api_edit_order_note_data', $data, $note->comment_ID, $order->get_id(), $this );
    
    			// Note content
    			if ( isset( $data['note'] ) ) {
    
    				wp_update_comment(
    					array(
    
  • /includes/legacy/api/v3/class-wc-api-orders.php line 1422
    			if ( $note->comment_post_ID != $order->get_id() ) {
    				throw new WC_API_Exception( 'woocommerce_api_invalid_order_note_id', __( 'The order note ID provided is not associated with the order', 'woocommerce' ), 400 );
    			}
    
    			$data = apply_filters( 'woocommerce_api_edit_order_note_data', $data, $note->comment_ID, $order->get_id(), $this );
    
    			// Note content
    			if ( isset( $data['note'] ) ) {
    
    				wp_update_comment(
    					array(