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:

This action triggers when a member is edited in the admin area. It can be used for saving custom fields or executing code when a member is edited.


  • $user_id (int) - ID number of the user being edited.


 * Stores the information submitted profile update
function pw_rcp_save_user_fields_on_profile_save( $user_id ) {

	if( ! empty( $_POST['rcp_profession'] ) ) {
		update_user_meta( $user_id, 'rcp_profession', sanitize_text_field( $_POST['rcp_profession'] ) );

	if( ! empty( $_POST['rcp_location'] ) ) {
		update_user_meta( $user_id, 'rcp_location', sanitize_text_field( $_POST['rcp_location'] ) );

add_action( 'rcp_edit_member', 'pw_rcp_save_user_fields_on_profile_save', 10 );
Have more questions? Submit a request
Powered by Zendesk