Clanbite Forums Forums

apply_filters( 'clanbite_forums_topic_action_menu_items', list<array<string, mixed>> $items, object $topic, object $forum, int $viewer_id, string $context )

Filters topic row / opening-post action menu items for the forums block.

Filter PHP

Parameters

$items (list<array<string, mixed>>)

Menu items (see shape above).

$topic (object)

Topic row.

$forum (object)

Forum row.

$viewer_id (int)

Viewer user ID.

$context (string)

topic_list or thread_op.

Example

add_filter( 'clanbite_forums_topic_action_menu_items', function ( $items, $topic, $forum, $viewer_id, $context ) {
	// Change $items here.
	return $items;
}, 10, 5 );

Defined in inc/forums-action-menus.php