HEX
Server: Apache/2.4.65 (Ubuntu)
System: Linux ielts-store-v2 6.8.0-1036-gcp #38~22.04.1-Ubuntu SMP Thu Aug 14 01:19:18 UTC 2025 x86_64
User: root (0)
PHP: 7.2.34-54+ubuntu20.04.1+deb.sury.org+1
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Upload Files
File: /var/www/html/ielts-store/wp-content/plugins/automatewoo/includes/Compat/Order_Notes.php
<?php
// phpcs:ignoreFile

namespace AutomateWoo\Compat;

aw_deprecated_class( Order_Notes::class, '5.2.0' );

/**
 * Provide order note methods that are compatible with changes introduced in WC 3.2.
 *
 * @class Order_Notes
 * @since 4.4
 *
 * @deprecated in 5.0.0
 */
class Order_Notes {

	/**
	 * Get order notes.
	 *
	 * @param  array $args Query arguments {
	 *     Array of query parameters.
	 *
	 *     @type string $limit         Maximum number of notes to retrieve.
	 *                                 Default empty (no limit).
	 *     @type int    $order_id      Limit results to those affiliated with a given order ID.
	 *                                 Default 0.
	 *     @type array  $order__in     Array of order IDs to include affiliated notes for.
	 *                                 Default empty.
	 *     @type array  $order__not_in Array of order IDs to exclude affiliated notes for.
	 *                                 Default empty.
	 *     @type string $orderby       Define how should sort notes.
	 *                                 Accepts 'date_created', 'date_created_gmt' or 'id'.
	 *                                 Default: 'id'.
	 *     @type string $order         How to order retrieved notes.
	 *                                 Accepts 'ASC' or 'DESC'.
	 *                                 Default: 'DESC'.
	 *     @type string $type          Define what type of note should retrieve.
	 *                                 Accepts 'customer', 'internal' or empty for both.
	 *                                 Default empty.
	 * }
	 * @return \stdClass[]              Array of stdClass objects with order notes details.
	 */
	static function get_order_notes( $args ) {
		return wc_get_order_notes( $args );
	}

	/**
	 * Get an order note
	 *
	 * @param  int|\WP_Comment $data Note ID (or WP_Comment instance for internal use only).
	 * @return \stdClass|null Object with order note details or null when does not exists.
	 */
	static function get_order_note( $data ) {
		return wc_get_order_note( $data );
	}
}