Clanbite Forums Forums

apply_filters( 'clanbite_forums_user_hidden_from_online', bool $hidden, int $user_id )

Filters whether a logged-in user is hidden from the public “who’s online” counts.

Filter PHP

Parameters

$hidden (bool)

Whether the user is hidden.

$user_id (int)

User ID.

Example

add_filter( 'clanbite_forums_user_hidden_from_online', function ( $hidden, $user_id ) {
	// Change $hidden here.
	return $hidden;
}, 10, 2 );

Defined in inc/Forums/Online_Tracker.php