add a filter on WP_User::get_data_by()?
-
Hello i speak about this function https://github.com/WordPress/wordpress-develop/blob/6.3/src/wp-includes/class-wp-user.php#L193-L260 on this side it would be cool to filter the data before it got queried for exampled on the linked page on line 195 and 253.
Backstory:
im run a system which can be called under different domains and shows different Shops (styles), a user come on shop1.de and register so could hook and add usermail.de-shop1.de, when user does the same on shop2.de he will be inserted with usermail.de-shop2.de.
This would work but i need a way to restore the old mail for temp use in the system because email is a identify in WP/WOO so i should manipulate the called function so that the user see his own mail and not the system used one.
I can hook the login and filter the data here but this helps me only with login like allow his data only on this site but he cant register on another site with same mail
- The topic ‘add a filter on WP_User::get_data_by()?’ is closed to new replies.