1 vote
Accepted

PHP File_exist() not working - Checking if File Exist in WordPress Theme Directory

Most of this code is unnecessary. You're attempting to convert a URL to a path when you could just use the function that returns a path. $path = get_theme_file_path( 'archive.php' ); if ( file_exists(...
user avatar
1 vote
Accepted

Can we intercept user_login and user_pass from a wp_login_form?

Thanks @Buttered_Toast ! The answer was to use the wp_authenticate hook and put my custom function as argument. I should have thought about it...
user avatar
1 vote
Accepted

Empty Pdf file generated with FPDF library in WordPress plugin

This might not solve the problem, but what you're currently doing looks unnecessarily convoluted (ajax request, fake link, serve PDF via link click etc.) Why not just a link styled as a button... <...
user avatar
  • 34.8k

Only top scored, non community-wiki answers of a minimum length are eligible