bp_allowed_themes

Fire the 'bp_allowed_themes' filter.

Description

(array) bp_allowed_themes( (array) $themes ); 

Filter the allowed themes list for BuddyPress-specific themes.

Returns (array)

Parameters (1)

0. $themes (array)
The path of the template to include.

Usage

  1. if ( !function_exists( 'bp_allowed_themes' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-core/bp-core-dependency.php'; 
  3.  
  4. // The path of the template to include. 
  5. $themes = array(); 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bp_allowed_themes($themes); 
  9.  

Defined (1)

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

/bp-core/bp-core-dependency.php  
  1. function bp_allowed_themes( $themes ) { 
  2.  
  3. /** 
  4. * Filters the allowed themes list for BuddyPress-specific themes. 
  5. * @since 1.7.0 
  6. * @param string $template The path of the template to include. 
  7. */ 
  8. return apply_filters( 'bp_allowed_themes', $themes );