bp_docs_attachment_protection

Are attachment downloads protected?.

Description

bp_docs_attachment_protection( (bool) $force_check = false ); 

Parameters (1)

0. $force_check — Optional. (bool) => false
The force check.

Usage

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

Defined (1)

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

/includes/attachments.php  
  1. function bp_docs_attachment_protection( $force_check = false ) { 
  2. return buddypress()->bp_docs->attachments->check_is_protected( $force_check );