': $active[ $component ] = self::callFunc( 'bp_is_active', 'members' ); break; default: $active[ $component ] = false; } return $active[ $component ]; } /** * Returns whether the current page is a BuddyPress component page. * * @since 4.7.6 * * @return bool Whether the current page is a BuddyPress component page. */ public static function isComponentPage() { return ! empty( aioseo()->standalone->buddyPress->component->templateType ); } }