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?)
|
|
|||||||||
|
|
You'll need to bring your code into the WordPress realm. Easiest way to do it is to create a new template (a standard .php file that will reside inside
Once you have a working page with a template, you can incorporate your code into that template and use |
|||
|
|
|
This is impossible to answer definitively without a better description, but I am assuming that
|
||||
|
|