I am trying to export the values that users input into Contact form 7 in WordPress, to PDF via fpdf. This is what I\'ve set up, I can generate a PDF but without the dynamica
Don't forget to use a Child-Theme so your extra code in functions.php doesn't disappear when keeping the theme up to date. Having said that I had no issues above (credit to Kory).
In order to keep the /fpdf/ folder in the child-theme there is a new WP command: get_theme_file_path(), which the code from Kory uses.
https://wordpress.stackexchange.com/questions/192773/override-get-template-directory-in-child-theme