bbp_admin_setting_callback_include_root()

Include root slug setting field

Description

Source

File: bp-forums/admin/settings.php

919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
function bbp_admin_setting_callback_include_root() {
?>
 
    <input name="_bbp_include_root" id="_bbp_include_root" type="checkbox" value="1" <?php checked( bbp_include_root_slug() ); bbp_maybe_admin_setting_disabled( '_bbp_include_root' ); ?> />
    <?php
    printf(
        '<label for="_bbp_include_root">%s</label>',
        sprintf(
            __( 'Prefix all forum content with the  <a href="%s">Forums page</a> slug (Recommended)', 'buddyboss' ),
            add_query_arg([
                'page' => 'bp-pages',
            ], admin_url( 'admin.php' ) )
        )
    );
 
}

Changelog

Changelog
Version Description
bbPress (r2786) 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.