Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function sync_ip_on_register( $update_data, $user_id ) {
- $update_data['ip_address'] = $_SERVER['REMOTE_ADDR'];
- return $update_data;
- }
- add_filter( 'wpf_user_register', 'sync_ip_on_register', 10, 2 );
- add_filter( 'wpf_user_update', 'sync_ip_on_register', 10, 2 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement