Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Direct jquery
- // Add this js as hidePastDate.js at your child-theme's directory (https://prnt.sc/1a1uxwd) then add call as internal JS file https://pastebin.com/edit/CPWzRGBR
- jQuery(document).ready(function( $ ){
- // This will hide past data from WPUF date/time field
- $("#wpuf-date-_EventStartDate").datepicker( //your class/id name
- {
- minDate: 0,
- beforeShow: function() {
- $(this).datepicker('option', 'maxDate');
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement