WordPress开发者和主题制作者的搜索引擎



wp_get_upload_dir ›

Since4.5.0
已弃用n/a
wp_get_upload_dir ( 没有参数 )
查看:
返回:
  • (array) See wp_upload_dir() for description.
定义在:
文档:

Retrieves uploads directory information.

Same as wp_upload_dir() but "light weight" as it doesn't attempt to create the uploads directory. Intended for use in themes, when only 'basedir' and 'baseurl' are needed, generally in all cases when not uploading files.



源码

function wp_get_upload_dir() {
	return wp_upload_dir( null, false );
}