WordPress upload file – get path to WordPress installation April 27, 2022 by Tarik Billa Use wp_upload_dir() for path to uploads, and use get_bloginfo() to get paths to the WP location