bbp_get_root_url()

Get the root URL


Description Description


Return Return

(string)


Top ↑

Source Source

File: includes/core/abstraction.php

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.