Skip to content

Instantly share code, notes, and snippets.

@contemplate
Created August 9, 2022 12:17
Show Gist options
  • Save contemplate/562a37048ef0f83de22cc781eb1be115 to your computer and use it in GitHub Desktop.
Save contemplate/562a37048ef0f83de22cc781eb1be115 to your computer and use it in GitHub Desktop.
BUDDYBOSS ELEMENTOR FORUMS WIDGET AVATAR
<?php
$get_last_reply_id = bbp_get_topic_last_reply_id( bbp_get_topic_id() );
echo bbp_get_author_link( array( 'post_id' => $get_last_reply_id,'size' => '180' ) );
?>
@contemplate
Copy link
Author

contemplate commented Aug 9, 2022

BUDDYBOSS ELEMENTOR FORUMS WIDGET AVATAR HACK:
/buddyboss-theme/inc/plugins/elementor/widgets/bb-forums.php

Switch Avatar to latest commentor.

Replace this code around line 543 with the above code:
<?php echo bbp_get_topic_author_link( array( 'size' => '180' ) ); ?>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment