Update Description via PHP
-
Hi!
I want to update the description of the user profile via PHP and send it to the database on user registration. Is there a way I can work around this?
I’ve tried the following:
add_action( 'user_register', 'expertopyme_update', 10, 1 ); function expertopyme_update( $user_id ) { $user = get_userdata( $user_id ); $interes = $user->ep_interes; update_user_meta( $user_id, 'description', $interes ); }
(I’m sorry, I’m really new to developing for wordpress)
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Update Description via PHP’ is closed to new replies.