bbp_slug_conflict

The bbPress bbp slug conflict hook.

Description

apply_filters( 'bbp_slug_conflict', (unknown) $core_slugs ); 

Parameters (1)

0. $core_slugs (unknown)
The core slugs.

Usage

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

Defined (1)

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

/includes/admin/settings.php  
  1. $the_core_slugs = apply_filters( 'bbp_slug_conflict', $core_slugs );