Call public static method from ajax ‘wpcf7_mail_sent’ hook September 21, 2022 by Tarik Billa Problem solved. In my case there was ‘PHP Fatal error: Call to undefined function get_home_path()’. Yup. That’s simply.