Description
This action hook comes at the end of the registration process. At this point, the user is registered, custom fields have been inserted, emails have been sent.
Parameters
$fields
(array) An array of user data from registration.
The $fields array will have keys for all user data fields from the registration form, keyed by the field’s meta key (option name). Additionally, there will be keys for the following:
- [ID]
- [user_nicename]
- [display_name]
- [nickname]
- [user_role]
- [user_registered] (timestamp)
- [wpmem_reg_ip]
- [wpmem_reg_url]
Useage
add_action( 'wpmem_register_redirect', function( $fields ) { // $fields is an array containing user registration data // keyed by the field meta key. if ( 'some_value' == $fields['my_field_meta_key'] ) { wp_redirect( home_url( 'some-page' ) ); exit(); } });