Opened 3 years ago
#59216 new feature request
add a filter on WP_User::get_data_by()
| Reported by: | stefanxyz | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Users | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
Hello i speak about this function https://github.com/WordPress/wordpress-develop/blob/6.3/src/wp-includes/class-wp-user.php#L193-L260
function WP_User::get_data_by()
$user = $wpdb->get_row(
$wpdb->prepare(
"SELECT * FROM $wpdb->users WHERE $db_field = %s LIMIT 1",
$value
)
);
It would be cool to filter the query or provide a own query.
Backstory: i run a shop under different domains and want that user can register with the same mail on different domains but in background is the same WP Instance.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)