首页 WordPress函数大全 get_temp_dir()

get_temp_dir()

2020-05-01 / 3281阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

get_temp_dir()

Determine a writable directory for temporary files.

描述

Function’s preference is the return value of sys_get_temp_dir(), followed by your PHP temporary upload directory, followed by WP_CONTENT_DIR, before finally defaulting to /tmp/

In the event that this function does not find a writable location, It may be overridden by the WP_TEMP_DIR constant in your wp-config.php file.

Return Return

(string) Writable temporary directory.

大家谈论
    我的见解