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
if ( !function_exists( 'gde_is_blockable' ) ) { require_once ABSPATH . PLUGINDIR . 'google-doc-embedder/functions.php'; } // The profile. $profile = null; // NOTICE! Understand what this does before running. $result = gde_is_blockable($profile);
Defined (1)
The function is defined in the following location(s).
- /functions.php
- function gde_is_blockable( $profile ) {
- if ( $profile['viewer'] == "standard" || $profile['link_show'] !== "none" ) {
- return false;
- } elseif ( ! strstr( $profile['tb_flags'], "n" ) && $profile['tb_fullscr'] == "default" ) {
- return false;
- } else {
- return true;
- }
- }