bbp_get_forum_last_topic_author_id( int $forum_id )

Return the author ID of the last topic of a forum


Description Description


Parameters Parameters

$forum_id

(Optional) Forum id


Top ↑

Return Return

(int) Forum's last topic's author id


Top ↑

Source Source

File: includes/forums/template.php

function bbp_get_forum_last_topic_author_id( $forum_id = 0 ) {
	$forum_id  = bbp_get_forum_id( $forum_id );
	$topic_id  = bbp_get_forum_last_topic_id( $forum_id );
	$author_id = bbp_get_topic_author_id( $topic_id );

	// Filter & return
	return (int) apply_filters( 'bbp_get_forum_last_topic_author_id', (int) $author_id, $forum_id, $topic_id );
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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