bp_get_root_domain()

Return the “root domain”, the URL of the BP root blog.


Description Description


Return Return

(string) URL of the BP root blog.


Top ↑

Source Source

File: bp-core/bp-core-template.php

1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
function bp_get_root_domain() {
    $bp = buddypress();
 
    if ( ! empty( $bp->root_domain ) ) {
        $domain = $bp->root_domain;
    } else {
        $domain          = bp_core_get_root_domain();
        $bp->root_domain = $domain;
    }
 
    /**
     * Filters the "root domain", the URL of the BP root blog.
     *
     * @since 1.2.4
     *
     * @param string $domain URL of the BP root blog.
     */
    return apply_filters( 'bp_get_root_domain', $domain );
}

Top ↑

Changelog Changelog

Changelog
Version Description
1.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.