get_temp_dir
get_temp_dir ( No parameters )
Returns:- (string) Writable temporary directory.
Defined at: - Introduced in WordPress: 2.5.0
- Deprecated in WordPress: —
Description
Determines 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.