bb_get_plugin_path

The BuddyPress bb get plugin path function.

Description

bb_get_plugin_path( (bool) $plugin = false ); 

Parameters (1)

0. $plugin — Optional. (bool) => false
The plugin.

Usage

  1. if ( !function_exists( 'bb_get_plugin_path' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-forums/bbpress/bb-includes/functions.bb-core.php'; 
  3.  
  4. // The plugin. 
  5. $plugin = false; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bb_get_plugin_path($plugin); 
  9.  

Defined (1)

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

/bp-forums/bbpress/bb-includes/functions.bb-core.php  
  1. function bb_get_plugin_path( $plugin = false ) 
  2. $plugin_path = bb_get_plugin_directory( $plugin, true ); 
  3. return apply_filters( 'bb_get_plugin_path', $plugin_path, $plugin );