bbp_update_topic_topic_id( int $topic_id )

Update the topic’s topic id


Description Description


Parameters Parameters

$topic_id

(Optional) Topic id to update


Top ↑

Return Return

(int) Topic id


Top ↑

Source Source

File: includes/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', $topic_id );

	// Filter & return
	return apply_filters( 'bbp_update_topic_topic_id', $topic_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.