开发者 | monzur |
---|---|
更新时间 | 2025年6月4日 14:20 |
捐献地址: | 去捐款 |
PHP版本: | 7.4 及以上 |
WordPress版本: | 6.8 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
plug-error-handler
to the /wp-content/plugins/
directory.It monitors for PHP fatal errors, parse errors, and similar fatal conditions during plugin activation or update. If such an error occurs, it immediately deactivates the plugin and prevents your site from breaking.
It uses register_shutdown_function()
to catch fatal errors via error_get_last()
and uses the $_GET['plugin']
and $_GET['action']
values to identify which plugin was being activated or updated.
No. It only works at the time of plugin activation or plugin update. Runtime errors (which occur after a plugin has been successfully activated) are not handled.
No, this plugin only handles PHP errors. It does not analyze or mitigate issues from JavaScript or stylesheets.
No. It's built to be conflict-free and only activates its logic when a plugin is being activated or updated.
No logs are stored to the database to keep this plugin lightweight. You’ll only see an admin notice if a plugin was automatically deactivated due to an error.
update-plugin
action).