Clanbite Profile sub-pages and groups

apply_filters( 'clanbite_profile_subpage_nav_visible', bool $visible, string $context, string $slug, int $object_id, array $config )

Whether a subpage tab is shown in profile navigation for this viewer and subject.

For player context, the default is false when the viewer is not the profile owner (owner-only tabs). Return true from this filter to expose a tab to other visitors (public subpage).

Filter PHP

Parameters

$visible (bool)

Default after capability and owner checks.

$context (string)

Context slug.

$slug (string)

Subpage slug.

$object_id (int)

Subject id (meaning per context).

$config (array)

Subpage config.

Example

add_filter( 'clanbite_profile_subpage_nav_visible', function ( $visible, $context, $slug, $object_id, $config ) {
	// Change $visible here.
	return $visible;
}, 10, 5 );

Defined in inc/profile-subpages.php