Clanbite Players Since 1.6.5

apply_filters( 'clanbite_players_friends_available', bool $available )

Filters whether player friendships are available.

Core has no friendships of its own: an add-on that does (Social Kit) returns true here and answers the two filters below.

Filter PHP

Parameters

$available (bool)

Default false.

Example

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

Defined in inc/extensions/players/functions.php

Changelog

VersionDescription
1.6.5Introduced.