bbp_update_reply_to( $reply_id, $reply_to )
Contents
Description Description
Source Source
File: includes/replies/functions.php
function bbp_update_reply_to( $reply_id = 0, $reply_to = 0 ) { // Validation $reply_id = bbp_get_reply_id( $reply_id ); $reply_to = bbp_validate_reply_to( $reply_to, $reply_id ); // Update or delete the `reply_to` postmeta if ( ! empty( $reply_id ) ) { // Update the reply to if ( ! empty( $reply_to ) ) { $reply_to = bbp_update_reply_to_id( $reply_id, $reply_to ); // Delete the reply to } else { delete_post_meta( $reply_id, '_bbp_reply_to' ); } } // Filter & return return (int) apply_filters( 'bbp_update_reply_to', $reply_to, $reply_id ); }