| 开发者 | izhan47 |
|---|---|
| 更新时间 | 2026年11月17日 19:05 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPL-2.0-or-later |
| 版权网址: | 版权信息 |
rcfw_match_fields - which details to match on. An array of email, phone and account. Remove phone to match on email and account only.rcfw_phone_digits - how many trailing digits identify a phone number. Default 10.rcfw_list_limit - how many earlier orders the Customer history box lists. Default 10.rcfw_order_was_returned - return true for an earlier order whose parcel came back undelivered. Shipping and courier plugins can use it to show a returned-parcel warning.add_filter( 'rcfw_order_was_returned', function ( $returned, $order ) { return $returned || 'returned' === $order->get_meta( '_my_courier_status' ); }, 10, 2 );
Two orders match when they share a billing email address, a billing phone number, or a customer account. Any one of the three is enough, because guests often reuse their phone number with a new email address, or the other way round.
Yes. That is the main reason it exists. Guest orders have no account, so WooCommerce's own customer view cannot link them, but they still carry an email address and a phone number.
No. Spaces, dashes, dots, brackets and a leading + are ignored, and only the last 10 digits are compared, so the local and international forms of the same mobile number match. You can change the number of digits with the rcfw_phone_digits filter.
No. Accounts that can edit WooCommerce orders, such as administrators and shop managers, are ignored for matching. Those orders still match their real customers by email and phone.
All of the customer's earlier orders except drafts and trashed orders. Cancelled, failed and refunded orders are included on purpose, so you can see them.
Yes. The plugin reads WooCommerce's order tables directly, which keeps it fast. HPOS is the default for new stores since WooCommerce 8.2. If your store still stores orders as posts, the plugin shows a notice and does nothing else.
No. It runs one small indexed query for each order on the screen, and only in the WordPress admin. Nothing runs on your store's front end.
No. It only reads the orders already in your database and displays them to staff who can see orders.
rcfw_match_fields, rcfw_phone_digits, rcfw_list_limit and rcfw_order_was_returned.