bp_get_activity_user_link()
Return the activity user link.
Description
Return
(string) $link The activity user link.
Source
File: bp-activity/bp-activity-template.php
963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 | function bp_get_activity_user_link() { global $activities_template ; if ( empty ( $activities_template ->activity->user_id ) || empty ( $activities_template ->activity->user_nicename ) || empty ( $activities_template ->activity->user_login ) ) { $link = $activities_template ->activity->primary_link; } else { $link = bp_core_get_user_domain( $activities_template ->activity->user_id, $activities_template ->activity->user_nicename, $activities_template ->activity->user_login ); } /** * Filters the activity user link. * * @since BuddyPress 1.2.0 * * @param string $link The activity user link. */ return apply_filters( 'bp_get_activity_user_link' , $link ); } |
Changelog
Version | Description |
---|---|
BuddyPress 1.2.0 | 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.