gde_is_blockable

Check if settings allow a file to be privatized (downloads blocked).

Description

gde_is_blockable( $profile ); 

Parameters (1)

0. $profile
The profile.

Usage

  1. if ( !function_exists( 'gde_is_blockable' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-doc-embedder/functions.php'; 
  3.  
  4. // The profile. 
  5. $profile = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = gde_is_blockable($profile); 
  9.  

Defined (1)

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

/functions.php  
  1. function gde_is_blockable( $profile ) { 
  2. if ( $profile['viewer'] == "standard" || $profile['link_show'] !== "none" ) { 
  3. return false; 
  4. } elseif ( ! strstr( $profile['tb_flags'], "n" ) && $profile['tb_fullscr'] == "default" ) { 
  5. return false; 
  6. } else { 
  7. return true;