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

woocommerce_account_orders()
woocommerce_my_account_my_orders_query
woocommerce/includes/wc-template-functions.php 3316-3323
apply_filters(
	'woocommerce_my_account_my_orders_query',
	array(
		'customer' => get_current_user_id(),
		'page'     => $current_page,
		'paginate' => true,
	)
)
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() ),
	)
)

Where the hook is used in WooCommerce

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