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

WC_Admin_List_Table_Orders::search_custom_fields() public WC 1.0

Search custom fields as well as content.

Это метод класса: WC_Admin_List_Table_Orders{}

Хуков нет.

Возвращает

Null. Ничего.

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

$WC_Admin_List_Table_Orders = new WC_Admin_List_Table_Orders();
$WC_Admin_List_Table_Orders->search_custom_fields( $wp );
$wp(WP_Query) (обязательный)
Query object.

Код WC_Admin_List_Table_Orders::search_custom_fields() WC 4.5.2

woocommerce/includes/admin/list-tables/class-wc-admin-list-table-orders.php
<?php
public function search_custom_fields( $wp ) {
	global $pagenow;

	if ( 'edit.php' !== $pagenow || empty( $wp->query_vars['s'] ) || 'shop_order' !== $wp->query_vars['post_type'] || ! isset( $_GET['s'] ) ) { // phpcs:ignore  WordPress.Security.NonceVerification.Recommended
		return;
	}

	$post_ids = wc_order_search( wc_clean( wp_unslash( $_GET['s'] ) ) ); // WPCS: input var ok, sanitization ok.

	if ( ! empty( $post_ids ) ) {
		// Remove "s" - we don't want to search order name.
		unset( $wp->query_vars['s'] );

		// so we know we're doing this.
		$wp->query_vars['shop_order_search'] = true;

		// Search by found posts.
		$wp->query_vars['post__in'] = array_merge( $post_ids, array( 0 ) );
	}
}