bbp_update_reply_to_id( int $post_id, int $reply_id )
Update the reply-to meta ID of a post
Description Description
Parameters Parameters
- $post_id
-
(Required) The post to update
- $reply_id
-
(Required) The reply ID
Source Source
File: includes/core/functions.php
function bbp_update_reply_to_id( $post_id = 0, $reply_id = 0 ) { // Allow the reply ID to be updated 'just in time' before save $reply_id = (int) apply_filters( 'bbp_update_reply_to_id', $reply_id, $post_id ); // Update the post meta reply ID update_post_meta( $post_id, '_bbp_reply_to', $reply_id ); return $reply_id; }
Changelog Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |