Protect custom php file with login
I’ve developed a php app and I’d like that it’s restricted to WP users (use WP like a private area). Is there a way to use WP is_user_logged_in function in a custom file (i.e. www.mysite.com/app.php)? where should I put the folder with the app ? I tried but the page is not recognized.. (.htaccess?) 2 … Read more