bbp_update_topic_topic_id( int $topic_id )

Update the topic’s topic id

Description

Parameters

$topic_id

(Optional) Topic id to update

Return

(int) Topic id

Source

File: bp-forums/topics/functions.php

function bbp_update_topic_topic_id( $topic_id = 0 ) {
	$topic_id = bbp_get_topic_id( $topic_id );

	update_post_meta( $topic_id, '_bbp_topic_id', (int) $topic_id );

	return apply_filters( 'bbp_update_topic_topic_id', (int) $topic_id );
}

Changelog

Changelog
Version Description
bbPress (r2954) 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.