PHP code example of bernskioldmedia / events-calendar-live-viewer
1. Go to this page and download the library: Download bernskioldmedia/events-calendar-live-viewer library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
bernskioldmedia / events-calendar-live-viewer example snippets
// Load next event one minute before it starts.
add_filter( 'eclw_seconds_before_to_load_next', static function() {
return MINUTE_IN_SECONDS;
} );
// Poll for new data every five minutes.
add_filter( 'eclw_polling_interval', static function() {
return 5 * MINUTE_IN_SECONDS;
} );