Upload::get_uploaded_files_url()
Description #
Return url of all uploaded files.
Source #
File: lib/form/class-upload.php
public function get_uploaded_files_url() { if ( true !== $this->uploaded || empty( $this->uploaded_files ) ) { return array(); } $uploads = wp_upload_dir(); $temp_dir = $uploads['baseurl'] . '/anspress-temp/'; $ret = array(); foreach ( $this->uploaded_files as $old => $new ) { $ret[ $old ] = $temp_dir . $new; } return $ret; }
Expand full source code Collapse full source code View on GitHub: lib/form/class-upload.php:504
Add your comment