BBP_BuddyPress_Activity::reply_activity_action_callback( $action, $activity )
Description
Source
File: bp-forums/activity.php
711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 | public function reply_activity_action_callback( $action , $activity ) { $user_id = $activity ->user_id; $reply_id = $activity ->item_id; $topic_id = $activity ->secondary_item_id; $forum_id = bbp_get_reply_forum_id( $reply_id ); // User $user_link = bbp_get_user_profile_link( $user_id ); // Topic $topic_permalink = bbp_get_topic_permalink( $topic_id ); $topic_title = get_post_field( 'post_title' , $topic_id , 'raw' ); $topic_link = '<a href="' . $topic_permalink . '">' . $topic_title . '</a>' ; // Forum $forum_permalink = bbp_get_forum_permalink( $forum_id ); $forum_title = get_post_field( 'post_title' , $forum_id , 'raw' ); $forum_link = '<a href="' . $forum_permalink . '">' . $forum_title . '</a>' ; return sprintf( esc_html__( '%1$s replied to the discussion %2$s in the forum %3$s' , 'buddyboss' ), $user_link , $topic_link , $forum_link ); } |
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.