“safely” add your custom PHP code…yeah, right
-
This plug-in works great until there’s some mistake in the code. That may very well take down the whole site, making it necessary to remove the plug-in from disk (ftp or whatever access you have). That’s some ultra-clear test failure of your code.
If you can identify where your code goes, then just clearing that would probably be sufficient. I don’t know where that is stored though and I see no clue in the supplied docs? I wish that was made clear both in the docs and in the GUI so you could just remove and try again. If you do this by hand in ‘functions.php’ then it’s easy to just make an edit and try again. This plug-in needs that ease. Unfortunately, I just had to move on.
Because the error handling is turned over to the server, I can’t recommend this on a production site. On your development server this might work fine tough, though the error handling needs to made more obvious so you can clear out the code ASAP when an error strikes.
Nice work, but proceed with caution!
WP 5.1/PHP 7.2.10
- The topic ‘“safely” add your custom PHP code…yeah, right’ is closed to new replies.