bbp_get_topic_types( int $topic_id )

Return an associative array of topic sticky types


Description Description


Parameters Parameters

$topic_id

(Optional) Topic id.


Top ↑

Return Return

(array)


Top ↑

Source Source

File: includes/topics/functions.php

function bbp_get_topic_types( $topic_id = 0 ) {

	// Filter & return
	return (array) apply_filters( 'bbp_get_topic_types', array(
		'unstick' => _x( 'Normal',       'Unstick a topic',         'bbpress' ),
		'stick'   => _x( 'Sticky',       'Make topic sticky',       'bbpress' ),
		'super'   => _x( 'Super Sticky', 'Make topic super sticky', 'bbpress' )
	), $topic_id );
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.4.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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