Clanbite Forums Since 1.3.5

clanbite_forums_has_component( string $component, string $legacy_fn ): bool

Whether a Clanbite component (provided by another extension) is available.

Asks the core components registry; on a Clanbite without it, falls back to checking for the provider's old function so the forums keep working next to an older core.

Namespace: Kernowdev\ClanbiteForums

Parameters

$component (string) Required

Component slug (reactions, mentions…).

$legacy_fn (string) Required

Function the provider exposed before the registry existed.

Returns

bool

Defined in inc/functions.php

Changelog

VersionDescription
1.3.5Introduced.