bp_docs_enable_attachments

Are attachments enabled?.

Description

bp_docs_enable_attachments(); 

Usage

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

Defined (1)

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

/includes/attachments.php  
  1. function bp_docs_enable_attachments() { 
  2. $enabled = get_option( 'bp-docs-enable-attachments', 'yes' ); 
  3. return apply_filters( 'bp_docs_enable_attachments', 'yes' === $enabled );