This video shows a way to create a Settings/Options page with MetaBox or ACF and have the values live update for all viewers currently viewing a page, in near real-time.
NOTE: This uses a rudimentary Polling method. There are modern methods to push data to browsers using websockets. For very high traffic websites, that would be much better. However, for this demo I wanted to keep it simple so that anyone can do it directly from WordPress and a code manager.
You will learn:
How to create simple Settings / Options pages
How to prepare Elements for live updating
How to create a simple WordPress REST endpoint
How to use JavaScript to get the data for the REST endpoint and update the elements.
GIST: https://gist.github.com/wpeasy/869177...
Contains 2 files, Template and PHP for REST.
Watch video Bricks Builder / MetaBox / ACF Live update options online without registration, duration hours minute second in high quality. This video was added by user WP Easy 28 March 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 61 once and liked it 2 people.