bp_core_admin_registration_pages_description()

Registration page settings section description

Description

Source

File: bp-core/admin/bp-core-admin-pages.php

function bp_core_admin_registration_pages_description() {
	if ( bp_get_signup_allowed() ) :
		echo wpautop( __( 'Associate a WordPress page with the following Registration sections.', 'buddyboss' ) );
	else :

		$invite_text = '';
		if ( bp_is_active( 'invites' ) ) {
			$invite_text = sprintf( 'Because <a href="%s">Email Invites</a> is enabled, invited users will still be allowed to register new accounts.',
					add_query_arg( [
						'page' => 'bp-settings',
						'tab'  => 'bp-invites',
					],
						admin_url( 'admin.php' ) ) );
		}

		echo wpautop(
			sprintf(
				__( 'Registration is currently disabled. %s To enable open registration, please click on the "Registration" checkbox in <a href="%s">General Settings</a>.', 'buddyboss' ),
				$invite_text,add_query_arg( [
					'page' => 'bp-settings',
					'tab'  => 'bp-general',
				],
					admin_url( 'admin.php' ) )
			)
		);
	endif;
}

Changelog

Changelog
Version Description
BuddyBoss 1.0.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.