Support » Plugin: WP Job Manager » Redirect after job application now broken after update

  • Resolved mattapex

    (@mattapex)


    After the latest WP Job Manager update, the redirect code we’d adapted to take people to a thank you page after applying, has stopped working.

    We were using this snippet (below) added to a child theme’s functions.php and alongside the core add on bundle Applications

    // redirect after application via Core Bundle Application

    add_action( ‘new_job_application’, ‘bk_redirect_now’, 99);
    function bk_redirect_now(){
    add_action( ‘template_redirect’, ‘bk_final_redirect’, 99);
    }
    function bk_final_redirect(){
    wp_redirect(‘https://www.MYSITE.co.uk/thanks/’);
    exit();
    }

    This helped with user experience, but we were also tracking the thanks page visit to help with goal tracking in Analytics.

    Whatever changed in the last WP Job Manager update has affected this and the redirect no longer works.

    Is there a better way to track applications via events/goals in Analytics? Or can anyone shed any light on why this redirect snippet is no longer working and/or suggest what we need to do to fix it please?

    Thanks!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.