This plugin was written to make WordPress theme and plugin developers’ life easier.
Inspired by the brilliant live.js script (written by Martin Kool),
this plugin will auto refresh your browser if you change any files in your wp-content/themes
or plugins directories. No need for Alt-Tab and manual refresh anymore.
It will monitor your directories by calling wp-live.php every second. If any file changed
(i.e. has a newer filemtime), the browser will be refreshed.
With this plugin, it is also very easy to check your work in many browsers simultaneously.
Just enable Frontend Monitoring, load the site in all your browsers and the rest goes automatically.
Starting from v1.3 there is an option to enable admin bar integration, to conveniently enable or
disable Live.php monitoring directly on your frontend or backend with just one click.
Since v1.5 with the content update feature, you can auto-update your browser with every post or page save.
For this we create a file in the uploads base folder (wp-content/uploads/), and touch it with every save,
which will trigger a refresh in the client browser. That location must be writable for this to work.
You should never activate this plugin on a live server! It is meant for developer environment only!
Use https://wordpress.org/plugins/reload/ instead, which is created for production environments.
Upload the WP Live.php plugin to your blog and Activate it.
If you want to use the content updates, make sure that the uploads base folder (wp-content/uploads/) is
writable! (But to use WP you would need this anyway…)
Contributors & Developers
“WP Live.php” is open source software. The following people have contributed to this plugin.Contributors
- A small js timeout fix
- Refresh CSS files without reloading the page.
- Awesome new feature: content updates!
When you save a post or page in your wp-admin, the visitor side will refresh itself, showing the new content immediately.
- Updated support forum link
- File state cache clearing added
- Switched to long polling. Now the js will open only one long ajax request every 2 minutes (or as long as the php script is allowed to run).
- No new features, only some refactoring and code cleaning
- Admin bar integration
- No cache fix for IE
- Added Backend (wp-admin) monitoring option
- Settings page improvements – Ajax controls
- Some minor fixes
- Added settings page (Settings/WP Live.php) to enable / disable the monitoring function
- Some code cleanup
- Updated for WP 3.3
- Initial version