bb_get_plugin_directory

The BuddyPress bb get plugin directory hook.

Description

apply_filters( 'bb_get_plugin_directory', (unknown) $plugin_directory, (unknown) $plugin, (unknown) $path ); 

Parameters (3)

0. $plugin_directory (unknown)
The plugin directory.
1. $plugin (unknown)
The plugin.
2. $path (unknown)
The path.

Usage

To run the hook, copy the example below.
  1. $plugin_directory = apply_filters( 'bb_get_plugin_directory', $plugin_directory, $plugin, $path ); 
  2.  
  3. if ( !empty( $plugin_directory ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the bb_get_plugin_directory callback 
  2. function filter_bb_get_plugin_directory( $plugin_directory, $plugin, $path ) { 
  3. // make filter magic happen here... 
  4. return $plugin_directory
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'bb_get_plugin_directory', 'filter_bb_get_plugin_directory', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'bb_get_plugin_directory', 'filter_bb_get_plugin_directory', 10, 3 ); 

Defined (1)

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

/bp-forums/bbpress/bb-includes/functions.bb-core.php  
  1. return apply_filters( 'bb_get_plugin_directory', $plugin_directory, $plugin, $path );