[wp-trac] [WordPress Trac] #59216: add a filter on WP_User::get_data_by()
WordPress Trac
noreply at wordpress.org
Sun Aug 27 09:59:55 UTC 2023
#59216: add a filter on WP_User::get_data_by()
-----------------------------+-----------------------------
Reporter: stefanxyz | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Users | Version:
Severity: normal | Keywords:
Focuses: |
-----------------------------+-----------------------------
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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59216>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list