bbp_topic_engagements_metabox( $post )

See who engaged with a topic


Description Description


Source Source

File: includes/admin/metaboxes.php

function bbp_topic_engagements_metabox( $post ) {

	// Get user IDs
	$user_ids = bbp_get_topic_engagements( $post->ID );

	// Output
	?><p><?php

		// Relationships
		$args = array(
			'include' => $user_ids
		);

		// Users were found
		if ( ! empty( $user_ids ) && bbp_has_users( $args ) ) :
			bbp_metabox_user_links();

		// No users
		else :
			esc_html_e( 'No users have engaged to this topic.', 'bbpress' );
		endif;

	?></p><?php

	do_action( 'bbp_topic_engagements_metabox', $post );
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.