Updated by Michael Visser 2017-06-21 View revision File functions.php Modified Side-by-side diff More Ignore whitespace Hide word diff function custom_woo_ce_sys_get_temp_dir() { // This is the full path to the new temp directory - // $path = ABSPATH . 'tmp' // This is a sample path using the WordPress ABSPATH Constant - $path = 'PATH_TO_TMP_DIRECTORY'; + $path = ABSPATH . 'tmp'; // This is a sample path using the WordPress ABSPATH Constant + // $path = 'PATH_TO_TMP_DIRECTORY'; // ini_set() adds a new PHP configuration value informing PHPExcel of the new temp directory ini_set( 'upload_tmp_dir', $path );
Updated by Michael Visser 2016-11-10 View revision File functions.php Modified Side-by-side diff More Ignore whitespace Hide word diff <?php function custom_woo_ce_sys_get_temp_dir() { + // This is the full path to the new temp directory + // $path = ABSPATH . 'tmp' // This is a sample path using the WordPress ABSPATH Constant $path = 'PATH_TO_TMP_DIRECTORY'; + + // ini_set() adds a new PHP configuration value informing PHPExcel of the new temp directory + ini_set( 'upload_tmp_dir', $path ); return $path; }
Updated by Michael Visser 2016-01-14 View revision File functions.php Modified Side-by-side diff More Ignore whitespace Hide word diff <?php function custom_woo_ce_sys_get_temp_dir() { -$path = 'PATH_TO_TMP_DIRECTORY'; -return $path; + + $path = 'PATH_TO_TMP_DIRECTORY'; + return $path; + } add_filter( 'woo_ce_sys_get_temp_dir', 'custom_woo_ce_sys_get_temp_dir' ); ?>
Created by Michael Visser 2015-12-16 View revision File functions.php Added Side-by-side diff More Ignore whitespace Hide word diff +<?php +function custom_woo_ce_sys_get_temp_dir() { +$path = 'PATH_TO_TMP_DIRECTORY'; +return $path; +} +add_filter( 'woo_ce_sys_get_temp_dir', 'custom_woo_ce_sys_get_temp_dir' ); +?>