bbp_metabox_user_links()
Loop through queried metabox users, and output links to their avatars
Description Description
Developers Note: This function may change in a future release to include additional actions, so do not use this function in any third party plugin.
Source Source
File: includes/admin/metaboxes.php
function bbp_metabox_user_links() {
// Loop through users
while ( bbp_users() ) {
// Set the iterator
bbp_the_user();
// Get the user ID, URL, and Avatar
$user_id = bbp_get_user_id();
$user_url = bbp_get_user_profile_url( $user_id );
$user_avatar = get_avatar( $user_id, 32, '', '', array(
'force_display' => true
) );
// Output a link to the user avatar
echo '<a href="' . esc_url( $user_url ) . '">' . $user_avatar . '</a>';
}
}
Changelog Changelog
| Version | Description |
|---|---|
| 2.6.0 | Introduced. |