Basic Snippets not running
-
I have been trying to utilize a refresh snippet
header("Refresh: 5");
Which I believe should auto refresh the website every 5 seconds. But this is not working
I have also been trying this:
if (!function_exists('wfu_before_file_upload_handler')) { function wfu_before_file_upload_handler($file_path, $file_unique_id) { $_SESSION['wfu_tempfiles'][$file_unique_id] = $file_path; return $file_path; // $message="TEST MESSAGE nymets1104"; // wfu_debug_log($message); } add_filter('wfu_before_file_upload', 'wfu_before_file_upload_handler', 10, 2); } if (!function_exists('wfu_after_file_upload_handler')) { function wfu_after_file_upload_handler($changable_data, $additional_data) { if ($additional_data['upload_result'] == 'success' && isset($_SESSION['wfu_tempfiles'][$file_unique_id]) && $_SESSION['wfu_tempfiles'][$file_unique_id] != '') { $file_contents = file_get_contents($_SESSION['wfu_tempfiles'][$file_unique_id]); $changable_data['js_script'] = 'window.location.reload();'; } return $changable_data; } add_filter('wfu_after_file_upload', 'wfu_after_file_upload_handler', 10, 2); }
Which is a script that runs when my Upload Plugin succesfully uploads a file. This utilizes a javascript call inside the php to refresh the page, but this does not seem to get called either.
Do you have any suggestions for me or am I doing something incorrectly?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Basic Snippets not running’ is closed to new replies.