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

by Idearia Srl · github.com/idearia/gf-time-conditional-field · website

2stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/idearia/gf-time-conditional-field/archive/refs/heads/master.zip

From the readme

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.

Read the full README on GitHub →