woocommerce_my_account_my_orders_query filter-hookWC 1.0

Usage

add_filter( 'woocommerce_my_account_my_orders_query', 'wp_kama_woocommerce_my_account_orders_query_filter' );

/**
 * Function for `woocommerce_my_account_my_orders_query` filter-hook.
 * 
 * @param  $array 
 *
 * @return 
 */
function wp_kama_woocommerce_my_account_orders_query_filter( $array ){

	// filter...
	return $array;
}
$array
-

Where the hook is called

In file: /templates/myaccount/my-orders.php
woocommerce_my_account_my_orders_query
woocommerce/templates/myaccount/my-orders.php 23-32
apply_filters(
	'woocommerce_my_account_my_orders_query',
	array(
		'numberposts' => $order_count,
		'meta_key'    => '_customer_user',
		'meta_value'  => get_current_user_id(),
		'post_type'   => wc_get_order_types( 'view-orders' ),
		'post_status' => array_keys( wc_get_order_statuses() ),
	)
)
woocommerce/includes/wc-template-functions.php 3194-3201
apply_filters(
	'woocommerce_my_account_my_orders_query',
	array(
		'customer' => get_current_user_id(),
		'page'     => $current_page,
		'paginate' => true,
	)
)

Where the hook is used in WooCommerce

woocommerce/packages/woocommerce-blocks/src/Domain/Services/DraftOrders.php 46
add_action( 'woocommerce_my_account_my_orders_query', [ $this, 'delete_draft_order_post_status_from_args' ] );