bp_get_the_thread_message_id()
Get the ID of the current message in the thread.
Description
Return
(int)
Source
File: bp-messages/bp-messages-template.php
1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 | function bp_get_the_thread_message_id() { global $thread_template ; $thread_message_id = isset( $thread_template ->message->id ) ? (int) $thread_template ->message->id : null; /** * Filters the ID of the current message in the thread. * * @since BuddyPress 1.9.0 * * @param int $thread_message_id ID of the current message in the thread. */ return apply_filters( 'bp_get_the_thread_message_id' , $thread_message_id ); } |
Changelog
Version | Description |
---|---|
BuddyPress 1.9.0 | 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.