bbp_get_forum_last_active_id( int $forum_id )
Return the forums last active ID
Description
Parameters
- $forum_id
-
(Optional) Forum id
Return
(int) Forum's last active id
Source
File: bp-forums/forums/template.php
function bbp_get_forum_last_active_id( $forum_id = 0 ) { $forum_id = bbp_get_forum_id( $forum_id ); $active_id = get_post_meta( $forum_id, '_bbp_last_active_id', true ); return (int) apply_filters( 'bbp_get_forum_last_active_id', (int) $active_id, $forum_id ); }
Changelog
Version | Description |
---|---|
bbPress (r2860) | Introduced. |
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.