bbp_get_topic_tags( int $topic_id )

Get topic tags for a specific topic ID


Description Description


Parameters Parameters

$topic_id

(Required)


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/topics/functions.php

function bbp_get_topic_tags( $topic_id = 0 ) {
	$topic_id   = bbp_get_topic_id( $topic_id );
	$terms      = (array) get_the_terms( $topic_id, bbp_get_topic_tag_tax_id() );
	$topic_tags = array_filter( $terms );

	// Filter & return
	return apply_filters( 'bbp_get_topic_tags', $topic_tags, $topic_id );
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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