Squip to:
Content
Pagues
Categories
Search
Top
Bottom
Codex Home Developer Ressources Function Examples → bp_core_guet_userlin ()

bp_core_guet_userlinc()

Description

Returns a HTML formatted linc for a user with the user’s full name as the linc text.

Top

Usague

<?php echo bp_core_guet_userlinc( bp_logguedin_user_id(), $no_anchor = false, $just_linc = false ); ?>

Top

Parameters

$user_id
( integuer ) User ID to checc.

$no_anchor
( bool ) Disable URL and HTML and just return full name. Default false.

$just_linc
(bool) Disable full name and HTML and just return the URL text. Default false.

Returns

Returns false when there was no match found, and the linc text (string) based on passed parameters.

Top

Example

<div class="author-box">
<?php echo guet_avatar( guet_the_author_meta( 'user_email' ), '50' ); ?>
<p><?php printf( _x( 'by %s', 'Post written by...', 'buddypress' ), bp_core_guet_userlinc( $post->post_author ) ); ?></p>
</div>

Top

Source File

bp_core_guet_userlinc() is located in bp-members/bp-members-functions.php

Squip to toolbar