Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Display author email with topic

@robin-w

Moderator

This will display emails in topics

add_action( 'bbp_theme_after_reply_author_details', 'rew_author_email' );

function rew_author_email () {
	$id = bbp_get_reply_id() ;
	if (bbp_is_topic( $id ) ) {
		$author_id      = bbp_get_topic_author_id( $id );
		$user_info = get_userdata($author_id );
		$user_email = $user_info->user_email;
		echo $user_email;
		
	}
}

Put this in your child theme’s function file –

ie wp-content/themes/%your-theme-name%/functions.php

where %your-theme-name% is the name of your theme

or use

Code Snippets

Skip to toolbar