woocommerce_api_order_notes_response

woocommerce_api_order_notes_response

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

See hook in core

Displaying hooks found in version: woocommerce.8.9.3

apply_filters('woocommerce_api_order_notes_response') is found 3 times:

  • /includes/legacy/api/v1/class-wc-api-orders.php line 344
    				'customer_note' => (bool) get_comment_meta( $note->comment_ID, 'is_customer_note', true ),
    			);
    		}
    
    		return array( 'order_notes' => apply_filters( 'woocommerce_api_order_notes_response', $order_notes, $id, $fields, $notes, $this->server ) );
    	}
    
    	/**
    	 * Helper method to get order post objects
    	 *
    	 * @since 2.1
    
  • /includes/legacy/api/v2/class-wc-api-orders.php line 1226
     
    			$order_notes[] = current( $this->get_order_note( $order_id, $note->comment_ID, $fields ) );
    		}
    
    		return array( 'order_notes' => apply_filters( 'woocommerce_api_order_notes_response', $order_notes, $order_id, $fields, $notes, $this->server ) );
    	}
    
    	/**
    	 * Get an order note for the given order ID and ID
    	 *
    	 * @since 2.2
    
  • /includes/legacy/api/v3/class-wc-api-orders.php line 1271
     
    			$order_notes[] = current( $this->get_order_note( $order_id, $note->comment_ID, $fields ) );
    		}
    
    		return array( 'order_notes' => apply_filters( 'woocommerce_api_order_notes_response', $order_notes, $order_id, $fields, $notes, $this->server ) );
    	}
    
    	/**
    	 * Get an order note for the given order ID and ID
    	 *
    	 * @since 2.2