common()->users()::user_exists( $uid ) ) { return; } if ( ! empty( $uid ) && is_super_admin( $uid ) ) { wp_die( esc_html__( 'Super administrators can not be modified.', 'ultimate-member' ) ); } UM()->fields()->editing = true; if ( ! um_is_myprofile() && ! UM()->roles()->um_current_user_can( 'edit', um_profile_id() ) ) { um_safe_redirect( UM()->permalinks()->get_current_url( true ) ); exit; } if ( um_is_myprofile() && ! um_can_edit_my_profile() ) { um_safe_redirect( um_edit_my_profile_cancel_uri() ); exit; } } } }