bbp_get_user_profile_edit_link( int $user_id )
Return link to the profile edit page of a user
Description
Parameters
- $user_id
-
(Optional) User id
Return
(string) User profile edit link
Source
File: bp-forums/users/template.php
function bbp_get_user_profile_edit_link( $user_id = 0 ) { // Validate user id $user_id = bbp_get_user_id( $user_id ); if ( empty( $user_id ) ) return false; $user = get_userdata( $user_id ); $edit_link = '<a href="' . esc_url( bbp_get_user_profile_url( $user_id ) ) . '">' . esc_html( $user->display_name ) . '</a>'; return apply_filters( 'bbp_get_user_profile_edit_link', $edit_link, $user_id ); }
Changelog
Version | Description |
---|---|
bbPress (r2688) | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.