I am looking for any hook using which I can get the data (and perform some calculation) submitted from default Login and Registration forms of Wordpress. I am searching for such hooks through internet but not able to find any.
So, to recap:
Action hooks wp_login
and register_post
can be used to intercepts the data send by the login and registration form; although that is only for the “standard” data those forms send.
If you have enhanced these forms with custom fields, you can access their data directly in these hooks using $_POST
. Although that might not seem to be the cleanest way, it is an approach that is described in the WP docs , so maybe there is no “better” way explicitly provided to do things like this.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.