bbp_is_topic_super_sticky( int $topic_id )

Is the topic a super sticky?

Description

Parameters

$topic_id

(int) (Optional) Topic id

Return

(bool) True if super sticky, false if not.

Source

File: bp-forums/topics/template.php

function bbp_is_topic_super_sticky( $topic_id = 0 ) {
	$topic_id = bbp_get_topic_id( $topic_id );
	$stickies = bbp_get_super_stickies( $topic_id );

	return in_array( $topic_id, $stickies );
}

Changelog

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