admin_settings = new AdminSettings( $this ); $this->submission_handler = new SubmissionHandler( $this ); } /** * BuddyPress (free) plugin presence. * * Mutually exclusive with BuddyBossIntegration::is_active(): when any * BuddyBoss Platform marker is defined, BuddyBoss owns the signup hook * and this integration stays dormant. BuddyBoss Platform currently * defines only `BP_PLATFORM_VERSION` (see `bp-loader.php`); the extra * `BP_PLATFORM_PATH` exclusion is defense-in-depth so the mutual-exclusivity * invariant survives a future BB release that switches the marker constant * (e.g. for symlinked installs). Do not remove without first verifying * which constants the targeted BB version still defines. * * @since 1.3.0 * * @return bool */ public function is_active(): bool { return defined( 'BP_VERSION' ) && ! 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; } }