Action to do extra processing on the retrieved file (attachment) before returning the full file location.
do_action( 'pmpro_getfile_before_readfile', $filename, $file_mimetype );
Parameters
- $filename
- string; full URI to the file
- $file_mimetype
- string; a mimetype based on the file extension as returned by the pmpro_mimetype class.
Source
File: https://github.com/strangerstudios/paid-memberships-pro/blob/master/services/getfile.php
View in Source Code