bbp_reply_author_link
Description
The ‘bbp_reply_author_link’ function is used to display the current reply author’s user role, avatar and username linked to their profile
Where is it used
Templates: loop-single-reply.php loop-search-reply.php
How to use it
1 | <?php bbp_reply_author_link( $args ); ?> |
$args (optional) – Accepts an array of arguments to configure display ( post_id, link_title, type, size, sep, show_role )
Uses bbp_get_reply_author_link()
Sample code example
1 | <?php bbp_reply_author_link(); ?> |
Displays the linked avatar and username for the current reply author
1 | <?php bbp_reply_author_link( array ( 'sep' => '<br />' , 'show_role' => true ) ); ?> |
Displays the current reply author and user role separated by an HTML <br /> element
1 | <?php bbp_reply_author_link( array ( 'sep' => '<br />' , 'show_role' => true, 'size' => 32 ) ); ?> |
Displays the current reply author and user role separated by an HTML <br /> element and sets their avatar to a size of 32px wide and 32px tall
1 | <?php bbp_reply_author_link( array ( 'sep' => '<br />' , 'show_role' => false, 'type' => 'avatar' ) ); ?> |
Displays only the current reply author user’s avatar without their display name or user role
1 | <?php bbp_reply_author_link( array ( 'sep' => '<br />' , 'show_role' => false, 'type' => 'name' ) ); ?> |
Displays only the current reply author user’s display name without their avatar or user role
Related
bbp_author_link()
bbp_topic_author_link()