get_template_directory_uri() not working
Got the problem, Your confirm_email.php function should be inside the scope of wordpress. If you include the file into functions.php file or some file that is inside the wp scope then get_template_directory_uri() function will work. You can get around the problem by adding the code into a filter or action hook instead of a file. … Read more