Home › Forums › General Issues › Select dates to disable in frontend datepicker › Reply To: Select dates to disable in frontend datepicker
I am not familiar enough with that CF7 add on to know if it is possible or not.
In theory… you could create an options page with a field, possibly a repeater, to add dates to. You could then get this list of dates and use this list to disable these dates from being chosen.
You can use the WP functionality for localizing a script to have the list of dates added for your script to use. https://codex.wordpress.org/Function_Reference/wp_localize_script
This would be entirely dependent on whether or not it’s possible in that add on
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.