bp_core_admin_registration_pages_description()

Registration page settings section description

Description

Source

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

234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
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.