Description
The gravityflowpdf_download_authorized filter allows the download authorization to be overridden. Only triggered for authenticated users and assignees.
Parameters
Examples
1 2 3 4 5 | 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 can be used in the functions.php file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.
See also the PHP section in this article: Where Do I Put This Code?