bbp_get_root_url()

Get the root URL


Description Description


Return Return

(string)


Top ↑

Source Source

File: includes/core/abstraction.php

178
179
180
181
182
183
184
185
186
187
188
189
190
191
function bbp_get_root_url() {
 
    // Default
    $retval  = '';
    $rewrite = bbp_rewrite();
 
    // Use $wp_rewrite->root if available
    if ( property_exists( $rewrite, 'root' ) ) {
        $retval = $rewrite->root;
    }
 
    // Filter & return
    return apply_filters( 'bbp_get_root_url', $retval );
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.5.8 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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