Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/idearia/gf-time-conditional-field/archive/refs/heads/master.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
HOW-TO
Add in function.php
In timeFilters you can add all the functions you want to be called on date update, but keep in mind:
1. every function have to return false or the list of times
2. every function must have 2 parameters date[dd/mm/yyy] and day[int from 0(monday) to 6(sunday)]
The handler for all the scripts is Idearia\GfTimeConditionalFieldcustom
Here is a clean Javascript example of timeFilters, you can use a js file to, and register it as a script.