bp_get_message_thread_id()
Get the ID of the current thread in the loop.
Description
Return
(int)
Source
File: bp-messages/bp-messages-template.php
function bp_get_message_thread_id() { global $messages_template; /** * Filters the ID of the current thread in the loop. * * @since BuddyPress 1.0.0 * * @param int $thread_id ID of the current thread in the loop. */ return apply_filters( 'bp_get_message_thread_id', $messages_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.