Date Range field for Ninja Forms
Date Range field for Ninja Forms
by Per Soderlind · github.com/soderlind/date-range-ninja-forms · website
★ 11stars
4composer installs
3forks
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/soderlind/date-range-ninja-forms/archive/refs/heads/master.zipAlso on Packagist as soderlind/date-range-ninja-forms:
composer require soderlind/date-range-ninja-formsDeclares an update source (https://github.com/soderlind/date-range-ninja-forms), so updates arrive through the plugin's own updater.
From the readme
Date Range field for Ninja Forms
Description | Installation | Screenshots | Filters | Changelog | Credits | Copyright and License
Description
Add a Date Range field to your Ninja Forms.
Installation
1. Upload the plugin files to the /wp-content/plugins/data-range-ninja-forms directory, or install the plugin through the WordPress plugins screen directly.
1. Activate the plugin through the 'Plugins' screen in WordPress
1. Use Ninja Forms to add the Date Range field.
Screenshots
1. Settings
2. Using Ninja Forms to add the Date Range field.
3. Date Range at the front-end.
Filters
Add the filters to your child theme functions.php
daterangelang
Override the value returned from getlocale().
E.g. if using Polylang, add:
daterangedropdowns
Enable dropdowns for months, years.
If maxYear is null then maxYear will be equal to (new Date()).getFullYear().
daterangebuttontext
Text for buttons.
See also
I've created an iCalendar add-on for Ninja Forms.
Changelog
1.1.0
- Update to latest version of Litepicker
1.0.2
- Lint source code using PHP CodeSniffer and Rome.
1.0.1
- Add date setting field
1.0.0
- Refactor
0.1.0
- Custom validation for required fields
- Add mom