This is what you get back from the function:
1 2 3 4 5 6 7 8 9 | Array ( [path] => C:\development\xampp\htdocs\example.com/content/uploads/2012/04 [url] => http://example.com/content/uploads/2012/04 [subdir] => /2012/04 [basedir] => C:\~\example.com/content/uploads [baseurl] => http://example.com/content/uploads [error] => ) |
For multisites, you would get something like this:
1 2 3 4 5 6 7 8 9 | Array ( [path] => /var/www/example.com/public_html/wp-content/uploads/sites/2/2016/12, [url] => http://example.com/wp-content/uploads/sites/2/2016/12, [subdir] => /2016/12, [basedir] => /var/www/example.com/public_html/wp-content/uploads/sites/2, [baseurl] => http://example.com/wp-content/uploads/sites/2, [error] => , ) |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.