Clanbite Profile sub-pages and groups

apply_filters( 'clanbite_profile_subpages_nav_enabled_for_unknown_context', bool $enabled, string $context )

Whether profile subpage navigation is enabled for a custom context.

Filter PHP

Parameters

$enabled (bool)

Default true.

$context (string)

Context slug.

Example

add_filter( 'clanbite_profile_subpages_nav_enabled_for_unknown_context', function ( $enabled, $context ) {
	// Change $enabled here.
	return $enabled;
}, 10, 2 );

Defined in inc/profile-subpages.php