Function to return all replies to a topic
Is there a function that returns all the replies when the topicID is passed into a function?
Some example code is below for better understanding of the function I am asking about –
$args = array( 'post_parent' => $NUM, // ID of the topic 'order' => 'ASC', // Order of the replies (ASC or DESC) ); $replies = bbp_get_replies_function( $args ); // function i would like $response = array( status' => 'success', 'message' => $replies, );
- You must be logged in to reply to this topic.