bbp_get_config_location

Checks if there is a previous BuddyPress Forum configuration.

Description

(string) bbp_get_config_location( (string) $default = '' ); 

Returns (string)

The location of the bb-config.php file, if any

Parameters (1)

0. $default — Optional. (string) => ''
String Optional. Default empty string

Usage

  1. if ( !function_exists( 'bbp_get_config_location' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/core/options.php'; 
  3.  
  4. // string Optional. Default empty string 
  5. $default = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bbp_get_config_location($default); 
  9.  

Defined (1)

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

/includes/core/options.php  
  1. function bbp_get_config_location( $default = '' ) { 
  2. return apply_filters( 'bbp_get_config_location', get_option( 'bb-config-location', $default ) );