Clanbite Forums Forums

apply_filters( 'clanbite_forums_icons', array<string, array{label: string, content: string}> $icons )

Filters the icons available for forums (the picker on the Forums manage screen and the front-end rows).

Add icons for WordPress versions without the Icons API, or remove ones you do not want offered.

Filter PHP

Parameters

$icons (array<string, array{label: string, content: string}>)

Icons keyed by collection/name; content is SVG markup.

Example

add_filter( 'clanbite_forums_icons', function ( $icons ) {
	// Change $icons here.
	return $icons;
}, 10, 1 );

Defined in inc/Forums/Forum_Icons.php