-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Litepicker: added filter hook for amount of months displayed (mobile) #1754
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1754 +/- ##
============================================
+ Coverage 53.61% 54.02% +0.41%
- Complexity 2628 2631 +3
============================================
Files 98 98
Lines 12122 12131 +9
============================================
+ Hits 6499 6554 +55
+ Misses 5623 5577 -46 ☔ View full report in Codecov by Sentry. |
@hansmorb wollen wir für alle Hooks mal mindestens ein Beispiel anlegen? Um möglichst nah am Code zu sein, könnten wir das in einer Markdown hier im Code dokumentieren. Das machen andere WP-Plugins ähnlich. |
* Also add readme link to examples
@hansmorb was sagst du? |
Wollen wir den docs Ordner wirklich schon einrichten, bevor wir ne entsprechende Lösung haben? Scheint mir aktuell noch nicht nötig. Und ansonsten warte ich auf @danielappelt für Rückmeldungen zu diesem PR, das ist ja vor allem für die Leihbar |
Usage:
add_filter('commonsbooking_mobile_calendar_month_count', fn(): int => 2);
@danielappelt Bitte evaluieren, ob das für euch eine mögliche Lösung wäre. Ihr müsstet nur das o.g. Codesnippet in euer Child Theme oder über ein Codesnippet Plugin einfügen. Ihr könnt euch aus dem Kommentar unten gerne eine zip runterladen und das ganze mal austesten.
Dazu gehört auch wielebenwir/Litepicker#9
closes #1753