bbp_update_reply_id( int $post_id, $reply_id )
Update a posts reply meta ID
Description
Parameters
- $post_id
-
(Required) The post to update
- $forum_id
-
(Required) The forum
Source
File: bp-forums/core/functions.php
function bbp_update_reply_id( $post_id, $reply_id ) {
// Allow the reply ID to be updated 'just in time' before save
$reply_id = apply_filters( 'bbp_update_reply_id', $reply_id, $post_id );
// Update the post meta reply ID
update_post_meta( $post_id, '_bbp_reply_id',(int) $reply_id );
}
Changelog
| Version | Description |
|---|---|
| bbPress (r3181) | 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.