开发者 | perron |
---|---|
更新时间 | 2025年7月9日 21:08 |
捐献地址: | 去捐款 |
PHP版本: | 7.0 及以上 |
WordPress版本: | 6.8.1 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
perron_auto_refresh_custom_hooks
filterBy default, only .php, .js, and .css files within the active theme and child theme are monitored for changes. This improves performance and avoids unnecessary checks on other files.
Changes to CSS files will hot reload to display the updates styling without reloading the HTML DOM.
Editor saves to the wordpress page or post content.
If WP_DEBUG is enabled then any non critical error messages will display. Critical errors will prevent the plugin running, so a manual reload will be required once the code error is fixed to restart monitoring.
Auto refresh triggers on content save in these builders:
Go to Settings → Live Auto Refresh in your WordPress admin dashboard. You can enable or disable auto refresh here, or use the admin bar toggle for quick access. The settings page also allows you to monitor all file types, or default (php, css, js). You can also select which plugins to monitor for changes during development. Interval and timeout options are also available.
Developers can add support for additional builder save hooks using the perron_auto_refresh_custom_hooks
filter. Example:
add_filter('perron_auto_refresh_custom_hooks', function($hooks) {
$hooks[] = 'my_custom_builder_save_hook';
return $hooks;
});
This plugin saves developers valuable time, so any donations are greatly appreciated! DONATE
perron_auto_refresh_custom_hooks
filter