bp_get_the_thread_id()

Get the ID of the thread that the current loop belongs to.

Description

Return

(int)

Source

File: bp-messages/bp-messages-template.php

1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
function bp_get_the_thread_id() {
    global $thread_template;
 
    /**
     * Filters the ID of the thread that the current loop belongs to.
     *
     * @since BuddyPress 1.1.0
     *
     * @param int $thread_id ID of the thread.
     */
    return apply_filters( 'bp_get_the_thread_id', $thread_template->thread->thread_id );
}

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.