rcp_user_profile_updated

Note: This is part of the developer docs and is considered custom code.
Unfortunately, we cannot provide support for custom code at this time as we do not have the additional resources that would be necessary to provide support for custom code.

If you need assistance with this, please reach out to our list of consultants for further assistance:
https://codeable.io/developers/restrict-content-pro/
Triggers when a user updates their profile through the [rcp_profile_editor] shortcode.
Parameters:

$user_id – ID of the user editing their profile.

$userdata (array) – Array of WP_User fields that were submitted through the form (‘ID’, ‘first_name’, ‘last_name’, ‘display_name’, ‘user_email’).

$old_data (WP_User) – Old user WP_User object, before the update.

Have more questions?

Submit a request