gravityflowpdf_download_authorized

The gravityflowpdf_download_authorized filter allows the download authorization to be overridden. Only triggered for authenticated users and assignees.

Parameters

Parameter Type Definition
$authorized Bool To be authorised or not.
$entry Entry The Entry object.

Examples

Example 1 -

Placeholder code.

add_filter( 'gravityflowpdf_download_authorized', 'sh_gravityflowpdf_download_authorized',10,2 );
function sh_gravityflowpdf_download_authorized( $authorized, $entry ) {
	// Do something here
  return $authorized;
}

Placement

This code should be placed in the functions.php file of your active theme or in a custom functions plugin.