This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| * This is a file for improved WordPress maintenance mode. | |
| * It allows access to the admin dashboard and the REST-API. | |
| */ | |
| // first assume we are not allowed to enter | |
| $isAllowed = false; | |
| // set some allowed paths like dashboard, login and REST-API |