bp_docs_enable_folders_for_current_context

Is the folders function enabled for the current context?.

Description

bp_docs_enable_folders_for_current_context(); 

Use this toggle to filter whether folders should be enabled in the current interface.


Usage

  1. if ( !function_exists( 'bp_docs_enable_folders_for_current_context' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress-docs/includes/addon-folders.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_docs_enable_folders_for_current_context(); 
  7.  

Defined (1)

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

/includes/addon-folders.php  
  1. function bp_docs_enable_folders_for_current_context() { 
  2. // Enabled only in groups by default. Enable elsewhere only at your own risk. 
  3. $enable = function_exists( 'bp_is_group' ) && bp_is_group(); 
  4. return apply_filters( 'bp_docs_enable_folders_for_current_context', (bool) $enable );