bbp_update_reply_id( int $post_id, int $reply_id )

Update the reply meta ID of a post


Description Description


Parameters Parameters

$post_id

(Required) The post to update

$reply_id

(Required) The reply


Top ↑

Source Source

File: includes/core/functions.php

function bbp_update_reply_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_id', $reply_id, $post_id );

	// Update the post meta reply ID
	update_post_meta( $post_id, '_bbp_reply_id', $reply_id );

	return $reply_id;
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.