BP_Admin_Setting_Xprofile::bp_admin_setting_callback_profile_search()

Enable member profile search.

Description

Source

File: bp-core/admin/settings/bp-admin-setting-xprofile.php

422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
public function bp_admin_setting_callback_profile_search() {
    ?>
        <input id="bp-enable-profile-search" name="bp-enable-profile-search" type="checkbox" value="1" <?php checked( ! bp_disable_advanced_profile_search() ); ?> />
        <?php
        if ( false === bp_disable_advanced_profile_search() ) {
            printf(
                '<label for="bp-enable-profile-search">%s</label>',
                sprintf(
                    __( 'Enable <a href="%s">advanced profile search</a> on the members directory.', 'buddyboss' ),
                    add_query_arg([
                        'post_type' => 'bp_ps_form',
                    ], admin_url( 'edit.php' ) )
                )
            );
        } else {
            ?>
            <label for="bp-enable-profile-search"><?php _e( 'Enable advanced profile search on the members directory', 'buddyboss' ); ?></label>
            <?php
        }
}

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.