WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
фильтр не описан

woocommerce_my_account_my_orders_query хук-фильтр . WC 1.0

Использование

add_filter( 'woocommerce_my_account_my_orders_query', 'filter_function_name_660' );
function filter_function_name_660( $array ){
	// filter...

	return $array;
}
$array
-

Где вызывается хук

woocommerce_account_orders()
woocommerce_my_account_my_orders_query
woocommerce/includes/wc-template-functions.php 3167-3174
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() ),
	)
)

Где используется хук в ядре WooCommerce

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