Programmatically get file path from id
-
Hello, I’m a developer and I’m writing some code to dynamically add a Download Monitor file to an Elementor form email message, as attachment, using the file id.
Following documentation on plugin website, I was able to retrieve the url of a download by its id, with this code:$file_id=1218; $file = download_monitor()->service( 'download_repository' )->retrieve_single( $file_id ); $fileurl = $file->post->guid;
How can I retrieve the file’s full local path?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Programmatically get file path from id’ is closed to new replies.