diff --git a/functions.php b/functions.php index 70470d8..9e998dd 100644 --- a/functions.php +++ b/functions.php @@ -481,4 +481,4 @@ function quiztech_ajax_save_question() { } add_action( 'wp_ajax_quiztech_save_question', 'quiztech_ajax_save_question' ); -add_action( 'template_redirect', 'quiztech_handle_credit_purchase_submission' ); // Hook into template_redirect +add_action( 'template_redirect', 'quiztech_handle_credit_purchase_submission', 1 ); // Hook earlier (priority 1)