diff --git src/bp-members/bp-members-filters.php src/bp-members/bp-members-filters.php
index 2e15e19..146cc49 100644
|
|
function bp_members_edit_profile_url( $url, $user_id, $scheme = 'admin' ) { |
123 | 123 | return apply_filters( 'bp_members_edit_profile_url', $profile_link, $url, $user_id, $scheme ); |
124 | 124 | } |
125 | 125 | add_filter( 'edit_profile_url', 'bp_members_edit_profile_url', 10, 3 ); |
| 126 | |
| 127 | /** |
| 128 | * Filter the user registration URL to point to BuddyPress registration page. |
| 129 | * |
| 130 | * @since BuddyPress (2.3.0) |
| 131 | * |
| 132 | * @param string $register The user registration URL. |
| 133 | * @return string $register |
| 134 | */ |
| 135 | function bp_registration_url( $register ) { |
| 136 | if ( bp_get_signup_allowed() ) { |
| 137 | $register = trailingslashit( home_url( bp_get_signup_slug() ) ); |
| 138 | } |
| 139 | |
| 140 | return $register; |
| 141 | } |
| 142 | add_filter( 'register_url', 'bp_registration_url' ); |