bbp_get_reply_to( int $reply_id )
Return the reply to id of a reply
Description
Parameters
- $reply_id
-
(Optional) Reply id
Return
(int) Reply's reply to id
Source
File: bp-forums/replies/template.php
function bbp_get_reply_to( $reply_id = 0 ) { // Assume there is no reply_to set $reply_to = 0; // Check that reply_id is valid $reply_id = bbp_get_reply_id( $reply_id ); // Get reply_to value if ( !empty( $reply_id ) ) { $reply_to = (int) get_post_meta( $reply_id, '_bbp_reply_to', true ); } return (int) apply_filters( 'bbp_get_reply_to', $reply_to, $reply_id ); }
Changelog
Version | Description |
---|---|
bbPress (r4944) | 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.