creame / elementor-datepicker-localization
Load current site locale for Elementor form datepicker
Installs: 20
Dependents: 0
Suggesters: 0
Security: 0
Stars: 31
Watchers: 6
Forks: 4
Open Issues: 7
Type:wordpress-plugin
Requires
- php: >=5.3
- wpackagist-plugin/elementor: *
README
Load current site locale for Elementor form datepicker.
Installation
Composer:
Recommended method, Roots Bedrock and WP-CLI
$ composer require creame/elementor-datepicker-localization $ wp plugin activate elementor-datepicker-localization
Manual:
- Download the zip file
- Unzip to your sites plugin folder
- Activate via WordPress
WP-CLI:
$ wp plugin install https://github.com/creame/elementor-datepicker-localization/archive/master.zip --activate
Requirements:
Usage
Install, activate and ready!
Filters
You can change localization language with 'elementor/datepicker/locale'
, change date format with 'elementor/datepicker/format'
and change time picker to 24h format with 'elementor/datepicker/24h'
.
Place on your themes functions.php file.
// Example, force 'es' language add_filter( 'elementor/datepicker/locale', function(){ return 'es'; } ); // Example, change date format to dd/mm/yyyy add_filter( 'elementor/datepicker/format', function(){ return 'd/m/Y'; } ); // Use 24h format on time input add_filter( 'elementor/datepicker/24h', '__return_true' );
Support
- Follow @creapuntome on Twitter
- Donate https://www.paypal.me/creapuntome/
Changelog
1.3.0 - 14 Auguts 2020
- Added native HTML output applies date format
1.2.0 - 26 November 2019
- Fix js error when datepickr not exists
1.1.0 - 26 November 2019
- Added 'elementor/datepicker/24h' filter
- Fix date field pattern throws form validation error if change default date format
1.0.0 - 20 November 2019
- Initial release