WP Manifestindependent plugin directory
manifest / forms / gf-time-conditional-field

GF Time Coditional Field

Based on the selected date, you can output different times in the select

★ 2stars

Install

Download source zip No release zip yet

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.zip
No 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.