Hi @sinahosseinigst,
You can use the WPCode Safe Mode to get around that – when in Safe Mode, no snippets are executed.
https://wpcode.com/docs/php-error-handling-safe-mode/#Safe_mode
In order to start using the Safe Mode all you have to do is add the “wpcode-safe-mode” parameter to your admin url.
For example, if your site’s admin address is:
https://example.com/wp-admin, to access the safe mode you would visit:
https://example.com/wp-admin/?wpcode-safe-mode=1
Hi there @gripgrip !
Thanks for the fast response!
I mean, I deactivated the plugin, and I want to edit/delete some PHP snippet that I just added using the plugin, but how to do so?
Hi @sinahosseinigst,
The best way to do that is to reactivate the plugin and use the Safe Mode to prevent any snippets from being executed – that way you can go in to edit/deactivate the snippet directly from the admin.
WPCode preloads active snippets in an option the wp_options table so you can go in and delete the wpcode_snippets option there and then go in and edit the snippet in the admin, the snippet source will not be affected but you need to make sure you deactivate the faulty snippet first to avoid it getting preloaded again.
That’s why I suggested using the Safe Mode as that makes it easy to use the interface to edit the snippet.
Problem sovled @gripgrip !
Thanks a lot, I went to safe mode and disabled the snippet I added!
You saved my day!