admin_settings = new AdminSettings( $this ); $this->submission_handler = new SubmissionHandler( $this ); } /** * BuddyBoss Platform plugin presence. * * BuddyBoss Platform currently defines `BP_PLATFORM_VERSION` (see * `bp-loader.php`); the legacy `BP_VERSION` constant is also defined for * back-compat with BP themes, so it cannot be used to distinguish the * two flavours on its own. We additionally accept `BP_PLATFORM_PATH` — * not present in today's BB releases, but reserved as a forward-compat * marker so a future BB version that switches the constant does not * silently leave the integration dormant. The sibling * BuddyPressIntegration excludes BOTH markers to preserve mutual * exclusivity. * * @since 1.3.0 * * @return bool */ public function is_active(): bool { return ( defined( 'BP_PLATFORM_VERSION' ) || defined( 'BP_PLATFORM_PATH' ) ) && function_exists( 'buddypress' ); } /** * Admin settings accessor. * * @since 1.3.0 * * @return AdminSettings */ public function get_admin_settings(): AdminSettings { return $this->admin_settings; } }