Since 1.7.15. In services/getfile.php, fires when a user tries to access a file that they don’t have access to.


do_action("pmpro_getfile_before_error", $filename, $file_post_parent);

Example

Parameters

$filename
The parsed filename being accessed, including the full path.
$file_post_parent
Post object of the parent post if available.

Source

View in Source Code