bbp_get_forums_url

Return the forum URL.

Description

bbp_get_forums_url( (string) $path = '/' ); 

Parameters (1)

0. $path — Optional. (string) => '/'
Additional path with leading slash

Usage

  1. if ( !function_exists( 'bbp_get_forums_url' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/common/template.php'; 
  3.  
  4. // Additional path with leading slash 
  5. $path = '/'; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bbp_get_forums_url($path); 
  9.  

Defined (1)

The function is defined in the following location(s).

/includes/common/template.php  
  1. function bbp_get_forums_url( $path = '/' ) { 
  2. return home_url( bbp_get_root_slug() . $path );