forked from alicolville/Weight-Tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreadme.txt
1582 lines (1106 loc) · 82.5 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
=== Weight Tracker ===
Contributors: aliakro
Tags: weight,tracker,chart,bmi,bmr,macronutrient,measure,awards,custom fields,history,measurements,data
Requires at least: 5.7
Tested up to: 5.9.1
Stable tag: 9.3.13
Requires PHP: 7.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Donate Link: https://www.paypal.me/yeken
Allow registered users of your website to track their weight, measurements, photos, custom fields and much more! History can be displayed in both tables & charts. Support for BMI, BMR, Calorie Intake, Macronutrients and much more!
== Description ==
= Demo =
Use our free site for tracking your weight which shows off some of the plugin's feature: [https://demo.yeken.uk - Demo Site](https://demo.yeken.uk "https://demo.yeken.uk")
= Documentation =
[Weight Tracker Website](https://weight.yeken.uk/ "Weight Tracker Website")
= Core Features =
An easy to use plugin that allows your users to track their weight, body measurements, photos and any custom fields you define. Their entries can be seen in various ways, charts, tables, shortcodes and widgets. The user is able to set targets and modify their entries.
The admin area features a rich user interface to allow site owners and personal trainers interact with their user base and help them achieve their goals.
Support for US/UK date formats as well as Imperial and Metric measurements.
For further information read our documentation:
[Weight Tracker - Documentation](https://weight.yeken.uk/shortcodes "Weight Tracker - Documentation")
= Pro Plus Version =
* All of the features that come with a standard Pro license.
* **Basal Metabolic Rate (BMR) calculations per user**. Shortcodes and extended admin screens to display a user's BMR. For further information on BMR and how it is calculated visit our calculations page.
* **Harris Benedict formula**. Shortcodes and extended admin screens to a view a person's calorie intake required to maintain and lose weight. For further information on Harris Benedict Formula and how it is calculated visit our calculations page.
* **Recommended calorie intake per meal time**. Shortcodes and extended admin screens to recommend how a person should split their daily calorie intake across meals. For further information on how this is calculated please visit our calculations page.
* **Macronutrients Calculator**. Shortcodes and extended admin screens to recommend how their calorie consumption should be split into fats, carbohydrates and proteins. For further information on the Macronutrients Calculator and how these calculations are performed please visit our calculations page.
* **Additional user preference fields**. Additional user preference fields and shortcodes to display them: Activity Level, Date of Birth and Gender.
* **Awards**. Awards and Badges! Set awards for: BMI Change, BMI Equals, Weight Gain / Loss from start and Percentage of weight lost from start.
[Read more about features](https://weight.yeken.uk/features/ "Read more about features")
= Pro Version =
* **Webhooks, Zapier & Slack**. Push weight entry data and targets to Slack channels, Zapier or your own custom Webhooks!
* **Support for Gravity Forms.** Scan Gravity Form submissions for relevant Weight / Measurement fields and create a weight entry automatically. [Read more](https://weight.yeken.uk/gravity-forms/ "Read more")
* **Admin can view, edit and delete user data.** Various tools for viewing user's graphs, tables of entries, BMI, targets, weight lost / gained stats and much more.
* **CSV and JSON exports** for all data or a particular user.
* **Custom Fields.** Define and ask your user's custom questions on weight entry forms. Add numeric fields (for things like measurements), yes/no and text fields.
* **Photo Custom Fields**. Add one or more photo fields to your weight entry forms and allow your users to upload photos of their progress. Photos can be viewed, updated and removed by the end user and administrators. Handy shortcodes are provided for displaying galleries, most recent and oldest photo.
* **Groups**. Define user groups and assign your user's to them. View Weight Difference statistics for the group as a whole.
* **Admin notes**. Administrators have the ability to store notes against their users. If set to visible, the user can view these via [wt-notes] or receive emails with their content.
* **BMI.** Allows a user to specify their height. Once specified, their BMI is displayed next to each weight entry. There is also a shortcode to render the latest BMI.
* **Email notifications.** Receive email notifications when a person updates their target or adds / edits a weight.
* **Birthday Emails**. Automatically send your user's a birthday email (when they have entered a date of birth).
* **Overall user stats.** Shortcodes that allow you to display the total lost / gained for the community and another to display a league table.
* **Widgets.** Widgets that allow you to display the graph and quick weight entry form within any widget area.
* **Chart and form Shortcodes.** That allow you to display the graph and quick weight entry form by placing a shortcode on any post or page.
* **Progress Bar shortcode.** A shortcode that visually displays the logged in user\'s progress towards their target
* **Reminder shortcode.** A shortcode that can be used to remind the user to enter their target or weight for today.
* **Message shortcode** A shortcode that allows you to congratulate a user when they lose weight x number of times. It also provides the opposite allowing you to provide encouragement when someone gains weight.
* **Text Shortcodes.** Additional shortcodes for earliest and most recent dates entered.
* **Progress Bar shortcode / widget.** Display a user\'s progress towards their weight target.
* **Reminder shortcode.** Display a reminder to enter their weight for the given day or enter a target.
* **User preferences**. If enabled, the user will be able to select which unit they wish to store their weight in Metric or Imperial. They will also be able to specify date format and clear all their weight data.
* **Bar Charts**. Fancy something different to a line chart? The plugin will also support Bar Charts.
* **Delete existing entry**. A logged in user will be able to delete or edit an existing weight entry.
* **Better Tables.**. Data tables in front end and admin will support paging and sorting.
* **Admin: Extra Settings**. Extra settings to customise the plugin will be added e.g. number of plot points on graph, rows per page, etc.', WE_LS_SLUG)
[Read more about features](https://weight.yeken.uk/features/ "Read more about features")
= Languages support =
The plugin is written in English (UK) but has support for other languages such as French, Spanish, Dutch, Italian, Norwegian, Portuguese-Brazil, etc. For a list of supported languages please visit:
[Weight Tracker Website - Supported Languages](https://weight.yeken.uk/weight-units-date-formats-languages/ "Weight Tracker Website - Supported Languages")
Need a translation? Please read the following guide: [Translating the Weight Tracker plugin](https://weight.yeken.uk/translating-weight-loss-tracker-plugin/ "Translating the Weight Tracker plugin")
= Documentation =
Need further help? Please visit the dedicated site:
[Weight Tracker Website](https://weight.yeken.uk "Weight Tracker Website")
= Donate =
Paypal Donate: [www.paypal.me/yeken](https://www.paypal.me/yeken "www.paypal.me/yeken")
== Installation ==
1. Install "Weight Tracker" via the "Plugins" page in WordPress Admin (or download zip and upload).
2. Setup the plugin in WordPress Admin panel by goto to Settings > Weight Tracker
3. Create a page that users will visit. Within the page content add the shortcode [wlt].
4. Voila
== Frequently Asked Questions ==
= Do you have any guides / documentation? =
Yes! Please visit our dedicated site [Weight Tracker Website](https://weight.yeken.uk "Weight Tracker Website")
= Does it create any custom mySQL tables =
Yes it creates six:
- WP_WS_LS_DATA_TARGETS - Stores user target data.
- WP_WS_LS_DATA - Store weight and measurement information per user.
- WS_LS_DATA_USER_PREFERENCES - Stores user preferences.
- WS_LS_DATA_USER_STATS - Stores user statistics data.
- WS_LS_META_FIELDS - Defines the Custom Fields that can be asked on weight entry forms.
- WS_LS_META_ENTRY - Stores the answers for Custom Fields.
= What date formats doe it support? =
Currently it supports both UK (dd/mm/yyy) and US (mm/dd/yyyy) date formats.
= How do I add photo fields? =
Photo fields can be defined using a Custom Field.
= How do I add measurements? =
Measurements can be defined using a Custom Field.
= What measurement formats doe it support? =
Measurements are created using Custom Fields. You can therefore specify the unit yourself, whether that's centimetres, inches, feet, etc, it's entirely up to you.
== Screenshots ==
1. All three tabs of the main [wlt] shortcode
2. Tab one of [wlt]: Chart, Target and Weight form.
3. Tab two of [wlt]: Target Weight and Weight History
4. Tab three of [wlt]: User preferences page
5. Examples of random placements of [wlt-chart] and [wlt-form]
6. Examples of the Chart and Form widgets
7. Settings page: General
8. Settings page: User Experience
9. Settings page: Chart
10. Settings page: Measurements
11. Admin - User data summary
12. Admin - Displaying a user's data card
13. Admin - User search results
14. Admin - Edit a user's data entry
15. Admin - User's data card displayed on a tablet
16. Admin - Displaying a another view of the user's data card
17. Admin - Displaying all Custom Fields
18. Admin - Add / Edit custom field
== Upgrade Notice ==
9.3 - Admin notes! Store notes against your users and optionally share with them.
== Changelog ==
= 9.3.13 =
* Improvement: Added the argument "auto-detect" to [wt-group-total-weight-loss] shortcode.
* Improvement: Added the argument "text-no-difference" to [wt-group-total-weight-loss] shortcode.
* Bug fix: Small issue fixed where images weren't being processed in forms if set to "Do not show in shortcodes".
= 9.3.12 =
* Added new hook when simple user settings are saved.
= 9.3.11 =
* Added new hook when user settings are saved.
= 9.3.10 =
* Improvement: Remove DB constant so DB tables and cron jobs are recreated on every plugin update (if needed)
= 9.3.9 =
* Bug fix: 2nd attempt at fixing issues where Challenge data wasn't being processed correctly every hour.
* Bug fix: Updated challenges documentation links.
= 9.3.8 =
* Bug fix: Fixed issue where Challenge data wasn't being processed correctly every hour.
= 9.3.7 =
* Improvement: Macronutrient break down (into fats, carbs and proteins) can now be different per aim (maintain, lose or gain).
= 9.3.6 =
* Improvement: Added new argument to [wt-calories] that allows you to specify a percentage of the calculated figure to display e.g. [wt-calories percentage=60]
* Improvement: Added new field, "challenges-opted-in", to [wt-if]. This allows you to do conditional logic around whether a user has opted in or not to challenges.
= 9.3.5 =
* Improvement: PHP8 Compatibility. Thanks @shakethatweight-simon https://github.com/alicolville/Weight-Tracker/issues/403
= 9.3.4 =
* Bug fix: Change to database structure to ensure Large Text fields can be stored properly.
* Bug fix: Only process photo fields when actually placed within form.
= 9.3.3 =
* Bug fix: Tweaks to ensure WT works correctly with newer versions of Gravity Forms.
= 9.3.2 =
* Bug fix: Error when loading labels/values for drop downs.
= 9.3.1 =
* Improvement: Added the argument to 'custom-field-restrict-rows' to [wt-table] and [wt-custom-field-table]. This allows you to control if an entry is shown or not by which custom fields have been populated.
* Improvement: Added the argument to 'custom-field-restrict-rows' to [wt-chart] and [wt-custom-field-chart]. This allows you to control if an entry is shown or not by which custom fields have been populated.
* Improvement: Added the argument "invert" to the shortcode [wt-difference-from-target].
* Bug fix: When an image is not specified for a custom photo field, still store a row in the meta field entry table.
* Bug fix: Escape single quotes when emailing notes to users.
* Bug fix: When editing an entry via [wt-custom-fields-table], don't display the weight entry part of the form.
* Bug fix: When editing an entry via [wt-custom-fields-table], only display the custom fields for the fields displayed within the table.
= 9.3 =
* New feature: Admin notes. AStore notes against your users and optionally share with them.
* New feature: New shortcode [wt-notes] for display admin notes to your users. Read more: https://docs.yeken.uk/shortcodes/wt-calculator.html
= 9.2.1 =
* Bug fix: Error being thrown due to PHP type casting while calculating Macros.
= 9.2 =
* New feature: New shortcode [wt-calculator]. Allow logged in and non-logged in users to calculate their BMI, BMR, suggested calorie intake and macronutrients by varying the input parameters. https://docs.yeken.uk/shortcodes/wt-calculator.html
* Improvement: New argument "always-show" for [wt-shortcode-optin]. If set to true, the buttons shall always be displayed regardless of user choice. https://docs.yeken.uk/shortcodes/wt-challenges-optin.html
* Improvement: Added the filter "wlt-form-custom-field-row". Specifying this will allow you to inject HTML before each custom field on a form.
* Change: Changed the underlying code that powers BMR, Calorie and Macro N calculations to not be exclusively tied to user accounts. This is to support upcoming features.
* Bug fix: Minor CSS fix based on https://github.com/alicolville/Weight-Tracker/issues/386. Thanks @shakethatweight-simon
* Bug fix: Removed extra slashes from custom field dropdown and select options. https://github.com/alicolville/Weight-Tracker/issues/385
= 9.1.1 =
* Improvement: Added date pickers on "From" and "To" for custom date range on export page.
* Bug fix: Ensured the argument "custom-field-groups" is being respected correctly when using [wt-custom-fields-chart].
* Bug fix: Issue when building SQL statement for report options
= 9.1 =
* New feature: New custom field type "Dropdown" - create sliders to allow your user to answer using a scale.
* New feature: New custom field type "Range Slider" - create sliders to allow your user to answer using a scale.
* New feature: New custom field type "Large Text" - allow your user's to enter larger blocks of text.
* New feature: New custom field type "Radio buttons" - allow your user's to chose an answer from a defined list.
* Bug fix: Remove back slashes in custom field titles.
* Bug fix: Additional column headers are now correctly added to CSV output.
* Bug fix: Remove weight related columns from export rows where no weight entry was added.
* Bug fix: Bug fix with caching in [wt-photo-oldest] and [wt-photo-recent].
* Change: Removed trailing colon (:) from meta field labels.
= 9.0.4 =
* Bug fix: Fixed an issue where weight entry hooks were not being fired correctly (so awards etc not being issues as expected).
= 9.0.3 =
* Tweak to notice about expiring legacy licenses.
= 9.0.2 =
* Bug fix: Hide notice about expiring license once a new license has been entered.
= 9.0.1 =
* Tweak to notice about expiring legacy licenses.
= 9.0 =
* New feature: Allow entries without needing a weight - e.g. Custom Field only entries.
* New feature: New shortcode: [wt-custom-fields-accumulator] - displays a series of buttons that allow the user to increment the value of a numeric custom field. Read more https://docs.yeken.uk/shortcodes/wt-custom-fields-accumulator.html
* New feature: New shortcode: [wt-custom-fields-table] - display custom fields entries in a table. Read more https://docs.yeken.uk/shortcodes/wt-custom-fields-table.html
* New feature: New shortcode: [wt-custom-fields-chart] - display custom fields only on a chart. Read more https://docs.yeken.uk/shortcodes/wt-custom-fields-chart.html
* New feature: New shortcode: [wt-custom-fields-form] - display custom fields only on a form. Read more https://docs.yeken.uk/shortcodes/wt-custom-fields-form.html
* New feature: [wt-chart] shortcode can be used to display custom fields only (i.e. hide weight entries/targets). Use the new shortcode arguments 'show-weight' and 'show-target'. Read more https://docs.yeken.uk/shortcodes/wt-chart.html
* New feature: [wt-chart] new argument "message-no-data" to specify the error message to display when there is no data to display on the chart. Read more https://docs.yeken.uk/shortcodes/wt-chart.html
* New feature: Specify safety caps to ensure calories to lose weight doesn't fall below a certain value.
* New setting: "Load previous entry upon date selection?" - If enabled, and data exists, then the user will be asked whether they wish to load the data for the selected date chosen on the entry form.
* Improvement: When updating an entry, only fields that exist in the form shall be updated on the entry. This will save parts of an entry being blanked in certian circumstancs.
* Improvement: New arguments for shortcode [wt-table] 'enable-bmi', 'enable-notes'and 'enable-weight'. Read more https://docs.yeken.uk/shortcodes/wt-table.html
* Improvement: Upgrading charting library (chart.js) and underlying code to 3.2.0.
* Improvement: Added support for curved (bezier) lines for custom fields when plotted on charts.
* Improvement: Added the arguments "force-todays-date", "weight-mandatory", "load-placeholders" and "title" to the [wt-form] shortcode. Read more https://docs.yeken.uk/shortcodes/wt-form.html
* Improvement: Added the argument "weight-mandatory" to the [wt] shortcode.
* Improvement: Added the argument "type" to the shortcode [wt-form]. Specifies type of form. Either weight entry (weight), Set target (target), custom fields or both weight and custom fields. Read more https://docs.yeken.uk/shortcodes/wt-form.html
* Improvement: Placeholder values in weight/custom-field/target forms will now have suffixes.
* Improvement: Added BMI numeric value in admin data tables.
* Improvement: Added additional error handling around the ID argument for the [wt-challenges] shortcode.
* Improvement: Added a small notice to [wt-user-settings] informing admin that "Allow user settings" must be enabled for the shortcode to work.
* Improvement: Improved the warning around license expiring in x days.
* Bug fix: Fixed an issue where the argument "custom-field-groups" on forms wasn't being respected properly.
* Bug fix: Ensured [wt-chart] respected the argument "message-no-data".
* Bug fix: Fixed an issue where exports would not run for Pro users.
* Bug fix: Fixed "wlt-awards-deleting" hook from incorrectly firing.
* Bug fix: Fixed issue with "Delete Data" button not working in admin.
* Bug fix: Removed name and id attributes from "Clear Target" as causing non-unique console errors.
* Bug fix: Removed name and id attributes from "Save Entry" as causing non-unique console errors.
* Change: Removed redundant setting "Should y Axes start at 0?" as chart.js 3 treats y axes differently.
* Change: Removed redundant setting "Display points on chart?" this is now controlled by "Point thickness".
* Change: Added warning message around older licenses being deprecated.
= 8.5.1 =
* Improvement: Added Weight Tracker filters to myCred log page.
= 8.5 =
* New Feature: Support for myCred. Reward your users for adding weight entries and setting their target. Read more: https://docs.yeken.uk/gamification.html
* Renamed [wt-gallery] to [wt-photo-gallery]. Please note, the old shortcode will still work.
= 8.4 =
* New Feature: New shortcode [wt-latest-date] - display the date of the latest weight entry. Read more: https://docs.yeken.uk/shortcodes-text.html
* New Feature: New shortcode [wt-previous-date] - display the date of the previous weight entry. Read more: https://docs.yeken.uk/shortcodes-text.html
* New Feature: New shortcode [wt-start-date] - display the date of the first weight entry. Read more: https://docs.yeken.uk/shortcodes-text.html
* New Feature: New Shortcode [wt-days-between-start-and-latest] - display the number of days between first and latest entry. Read more: https://docs.yeken.uk/shortcodes-text.html
* New Feature: If enabled (Setting: Display previous entry on form?), the user's previous entry will be displayed as placeholders on form fields. This will allow the user to see the values on the previous entry.
* New Feature: Custom Field Groups. Custom fields can now be added to groups.
* Improvement: The following shortcodes can now be filtered so only certain custom fields or custom field groups are rendered: [weight-tracker], [wt-form], [wt-chart] and [wt-table].
* Improvement: Display and change the order of boxes on user summary and profile page (admin).
* Improvement: [weight-tracker] - new argument "hide-chart-overview" to hide chart on the Overview tab.
* Improvement: [weight-tracker] - new argument "show-chart-history" to show a chart on the History tab.
* Improvement: Added a new button to "Show all entries" on the User summary page. Please bare in mind, this option maybe slow performing on large data sets.
* Improvement: Admin: User profile: Added "Start" and "Latest" dates. Also the number of days between them is also displayed.
* Improvement: New revamped documentation site https://docs.yeken.uk. All references to https://weight.yeken.uk have been changed to the new site.
= 8.3.2 =
* Updated "Tested upto" statement within readme.txt
= 8.3.1 =
* Updated "Tested upto" statement within readme.txt
= 8.3 =
* Improvement: Webhooks, Zapier & Slack. Push weight entry data and targets to Slack channels, Zapier or your own custom Webhooks.
= 8.2 =
* Improvement: Added an Email Template manager so outgoing email templates can be edited without needing to dive into the database.
* Improvement: Removed redundant "Measurements" tab.
= 8.1.12 =
* Bug fix: Challenge datepicker can now pick years in the future.
* Bug fix: Removed "Read more about challenges" link under hide tab descriptions.
= 8.1.11 =
* Improvement: Added helper CSS classes to <body> to support different licenses.
* Bug fix: Don't attempt to set/get user cache on a group basis when cache has been disabled.
= 8.1.10 =
* Tested with 5.6 and updated tested upto statement.
= 8.1.9 =
* Bug fix: Persist querystring values when a weight or target form is submitted.
* Bug fix: Persist querystring values when a user deletes their data.
= 8.1.8 =
* Improvement: Added 50% off voucher for Prp Plus upgrade.
* Bug fix: Added shortened shortcodes for wlt-if-1, etc e.g. wlt-if-1 > wt-if-1
* Bug fix: Challenges not shown when "Close" icon was pressed.
* Updated plugin tags.
= 8.1.7 =
* Improvement: Made it clearer that challenges are a Pro Plus feature.
* Improvement: Added shortened challenges shortcodes.
= 8.1.6 =
* Improvement: Added a new shortcode [wt-form-target] which renders a target form ( wraps around [wt-form] ).
* Bug fix: Corrected additional information under "Include User's email address" setting.
= 8.1.5 =
* Improvement: New setting to disable adding user's email to notification settings.
* Improvement: Entire cache is invalidated when settings are saved.
* Bug fix: Corrected rendering of user email address in notification email (i.e. not part of Weight Summary).
* Bug fix: Fixed issue when rendering [wt-gallery] where an error would be displayed saying an array element was missing.
= 8.1.4 =
* Improvement: Custom field names / questions have been increased from 40 characters to 200 to allow for bigger questions.
* Improvement: New setting: Specify whether to use a custom field's name / question or abbreviation for chart legends.
* Improvement: Added user's email address to email notifications.
* Bug fix: When a meta field was removed from the graph dataset due to no data, a missing index caused the graph to fail. This has now been corrected.
= 8.1.3 =
* Bug fix: Fixed issue with translation paths.
* Improvement: Updated plugin headers
= 8.1.2 =
* Bug fix: Changes to ensure [wlt-awards] would render badges correctly.
* Bug fix: Only fire Ajax call to process export when on the export page.
* Bug fix: Updated Czech PO file.
= 8.1.1 =
* Improvement: Added new settings for tabs. Theme, hide descriptions and when to switch to a dropdown.
* Bug fix: Re-build language files.
* Bug fix: Delete user cache upon a Gravity Form submission.
* Bug fix: Changed word "drunk" to "drank".
= 8.1 =
* Improvement: New export interface that supports large data sets. Data is now prepped and saved to disk in stages which improves performance.
* Improvement: Ability to download all exports.
* Improvement: Added new setting to enable and disable challenges functionality.
* Improvement: Added new setting for email notifications "Include Weight Summary". If enabled, additional data will be included regarding the user's weight entries.
* Change: By default, tab descriptions shall now be hidden unless enabled in Settings.
* Bug fix: [wt-progress-bar] - when a user meets or exceeds their target, set the progress to 100%, not 1%!
* Bug fix: Labels for form fields are correctly linked by ID.
* Bug fix: Corrected caching issue when fetching entries. Not just caching on ID but all arguments for the lookup.
* Bug fix: Fixed Danish PO file
= 8.0.6 =
* Bug fix: Updated URL to demo site.
= 8.0.5 =
* Bug fix: Corrected an issue where localisation wasn't always kicking in.
= 8.0.4 =
* Bug fix: Adjustments to Gravity Hooks processor to process meta fields correctly.
= 8.0.3 =
* Bug fix: Reverse weight entry data correct for [wt-chart] shortcode.
= 8.0.2 =
* Improvement: Added the argument 'bmi-format' (accepts 'label', 'both' or 'index') to shortcodes wt-table and wt. Allows you to control the format BMI is displayed in.
= 8.0.1 =
* Tweak: 'hide-meta' argument renamed to 'hide-custom-fields' on [wt-form] shortcode.
* Tweak: Replaced 'enable-meta-fields' argument with 'enable-custom-fields' for [wt-table] shortcode.
* Tweak: Renamed argument 'show-meta-fields' with 'show-custom-fields' on [wt-chart].
* Improvement: Added 'wt-total-weight-loss-by-community' alias for 'wt-total-lost'.
* Improvement: Standardised shortcode names, created new versions with 'wt-' prefix instead of 'wlt-'
= 8.0 =
* New Feature: Allow numeric custom fields to be plotted on charts.
* New Feature: A user's target weight can now be displayed on bar graphs.
* Improvement: Measurements have been removed. They have now been migrated (along with user data) into Custom Fields.
* Improvement: Measurements, now custom fields, can now be displayed on bar graphs.
* Improvement: Export to CSV / JSON performance has been drastically improved.
* Improvement: 1000s of lines of code optimised and re-factored.
* Improvement: Various performance tweaks. All globals no longer dynamically loaded.
* Improvement: Caching: Previously, user cache consisted of a large data object per user. This would be loaded on every cache lookup. Now, instead, the cache object has been replaced with a lookup table of cache keys relating to the user. If a sub key is found, the larger, relevant data object is fetched from catch.
* Improvement: Caching: More database lookups are now cached.
* Improvement: Caching: Cache time has been increased from 15 minutes to 24 hours.
* Improvement: Caching: Shortcodes now have additional caching.
* Improvement: JS libraries are included for charts when needed.
* Improvement: Target weight added to user search results.
* Improvement: Removed redundant usage statistics being sent to YeKen.
* Improvement: Weights are no longer inserted into the database in three formats. Instead, only Kg is stored and converted when required.
* Improvement: Removed redundant tools for correcting conversion issues (added 5+ years ago).
* Improvement: Old shortcode names have now been deprecated and should be replaced with current names.
* Improvement: Optimised SQL queries.
* Improvement: Global variables declared on each page load for feature lists have been removed.
* Improvement: [wt-new-users] shortcode is now cached for 15 minutes.
* Improvement: New setting: Notes can be disabled on user weight forms (via settings).
* Improvement: Form Widget: Ability to show / hide the notes field.
* Improvement: [wt-form] and [wt] - new argument "hide-notes" to hide notes field.
* Improvement: Expanded error messages where required to be more descriptive.
* Improvement: Improved some error handling messages.
* Improvement: Targets can now be cleared by submitting the form with no weight specified.
* Improvement: User entry tables: MySQL queries and data processing are now cached.
* Improvement: User entry tables: Option to exclude meta field data when viewing all user entries (big speed improvement)
* Improvement: User entry tables: Usernames now open the user's record in a new tab.
* Improvement: Emails notifications: Now using underlying email manager that was added in 6.1.
* Improvement: Emails notifications: Subjects are more informative.
* Improvement: User groups are now enabled by default and appear on the main menu.
* Improvement: WLT Shortcode: Week Ranges are now displayed when over 150 weeks. They can also have to be enabled with new argument "enable-week-ranges"
* Improvement: Admin JS has been minified.
* Improvement: All CSS files are now minified.
* Improvement: Added buttons for quickly adding new custom fields.
* Improvement: Challenges are now enabled by default.
* Bug fix: "Who can view and modify user data?" has been fixed so user's with the specified minimum role can now access admin data pages.
* Bug fix: Awards for a user are now deleted when "Delete all data for this user" has been clicked.
* Bug fix: All challenge data for a user is now deleted when "Delete all data for this user" has been clicked.
* Bug fix: Cache now invalidated correctly when updating meta fields.
* Bug fix: Grid lines can now be toggled off for charts.
* Bug fix: All text when on Widget settings is now translatable.
* Bug fix: User search results were showing in correct weights.
* Bug fix: Removed dead setting "Disable notifications from YeKen?".
* Bug fix: Meta fields cache no longer cleared on weight entry insert / save.
* Bug fix: Only display "Clear Target" if the user has a target currently set.
* Bug fix: Delete all cache if admin delete's all data.
* Bug fix: BMR now cached on a user by user basis correctly.
* Bug fix: User data tables, difference in weight field now displays correct difference.
* Bug fix: Stats database table is also cleared when all user data has been deleted.
* Bug fix: When all user data has been removed, cache is now cleared.
* Bug fix: Week selector works correctly on [wlt] shortcode when showing advanced data table.
* Bug fix: When exporting to CSV / JSON, HTML is removed from image custom fields. Instead the full URL is returned.
* Bug fix: [wt-group-weight-difference] now shows the weight in the correct user format.
* Bug fix: User stats table is now cached for up to an hour.
* Bug fix: When placing more than one form on a page, unique IDs are generated for photo fields. This fixes an issue where the first field would be populated with a user selected a photo rather than the correct field.
* Bug fix: "ID" now displayed when displaying custom fields table in admin area.
= 7.6.3 =
* Improvement: Added user ID to Harris Benedict filters.
= 7.6.2 =
* Bug fix: Error thrown on settings page as Pro Plus not active.
= 7.6.1 =
* Improvement: Removed redundant PHP files.
* Improvement: Removed redundant meta field database columns.
* Improvement: Various minor PHP tweaks throughout code.
* Bug fix: Fix to ensure we are checking for correct MySQL tables.
= 7.6 =
* Improvement: Ability to specify ranges when subtracting / adding calories to lose / gain weight.
* Improvement: Ability to specify a % of calories to add / subtract for weight gain / loss (instead of just a fixed value)
* Improvement: Added new Spanish translations (thanks @Iván)
* Improvement: Additional filters throughout plugin.
* Improvement: Additional underlying support for shortcodes to support user IDs other than current logged in user.
* Improvement: New setting to determine whether commas should be used when formatting larger numbers.
* Improvement: New Challenge filter "Min. Weight Entries". This will default to "Two or more" i.e. ignore all entries that have only entered one weight entered.
* Bug fix: When a user had one or less entry then an exception was thrown while calculating no of entries in challenges.
* Bug fix: Gravity Form fix to ensure photos added via custom fields can be added to the weight entry.
* Bug fix: Error thrown when a start weight of zero is entered.
* Bug fix: Graph dates are now localised.
* Bug fix: Challenges tweak, show total weight loss as a comparison value.
* Bug fix: Main shortcode [wlt] would load upto a maximum of 1000 data entries when rendering the shortcode. This was hugely inefficient and the data was not required. Instead, it has been change to load enough data required for the chart (on average just 25 weight entries!)
* Bug fix: Missing image on license page.
* Tweaked descriptions on [wlt] tabs
= 7.5.7 =
* Improvement: Pass individual Macro shortcode through same rounding.
* Improvement: Added user_id to wlt-filter-bmr-calculation filter.
* Bug fix: Invalidate cache for a user when updating a single setting field
= 7.5.6 =
* Improvement: Added filter for Macro rounding places.
= 7.5.5 =
* Change: Added additional support for custom fields in user preferences.
* Change: Removed redundant github link.
= 7.5.4 =
* Bug fix: Challenges - Only include Challenge files (beta) for Pro Plus licenses. Doing so without a valid license caused settings not to save.
* Change: Challenges - by default, Challenges are disabled.
= 7.5.3 =
* Bug fix: Undeclared variable in measurements throwing an exception.
= 7.5.2 =
* Improvement: Challenges - calculate averages based on user's that have more than one Weight Entry recorded.
* Bug Fix: Challenges - issue fixed where rendering sums and averages out in stones / lbs was stripped down to a number.
= 7.5.1 =
* Improvement: Challenges - added sums and averages table.
= 7.5 =
* Improvement: Added a 5 minute cron hook.
* Improvement: Changed display to render a user's First and Last name and then fall back to nickname
* Improvement: Added Challenges.
* Improvement: Record when a weight entry was actually inserted. Currently not exposed, but maybe of use with the new Challenges system.
* Improvement: Hook fired when user cache has been deleted "wlt-hook-delete-cache-for-user".
* Improvement: Refactored and improved speed of user search.
* Improvement: When mobile, make the user header menu responsive.
* Improvement: Added some cross reference to YeKen's Meal Tracker.
* Improvement: Various small refactors of code.
* Bug fix: Fixed rounding of [wlt-weight-diff] & [wlt-weight-diff-from-target] to two decimal places
* Bug fix: Fixed layout issue on help page.
* Bug fix: Changed "Show Wizard" link so it doesn't trigger Meal Tracker's to also show.
* Bug fix: Added missing BMI to JSON export.
* Bug fix: Added Group to export.
= 7.4 =
* New Feature: New settings to split calorie intake over meal times.
= 7.3 =
* Improvement: Added a filter ( 'wt_ls_user_profile_header_links' ) to allow a user header record to be manipulated by other plugins.
* Improvement: Hook into Meal Tracker to add a view "Weight Tracker Record" to user profile.
* Improvement: refactored function wlt_user_action_links().
* Improvement: Refactored dialog function.
* Improvement: Some general tweaks and refactoring.
* Improvement: Refactored function yk_mt_link_email_for_user();
* Bug fix: Ensure users can't enter a date that causes an age of 0.
= 7.2 =
* Improvement: Added Czech translations (thanks @Petr)
* Improvement: Added hook "ws-ls-hook-user-preference-saved" for user preferences being saved.
= 7.1.3 =
* Bug Fix: Tweaked the SQL for building Meta fields table
= 7.1.2 =
* Changed purchase links to link through to https://shop.yeken.uk
* Bug fix: Don't flood help logs with license checks.
* Bug fix: Changed filter for measurements out of globals.php
= 7.1.1 =
* Improvement: Fetch license prices from YeKen API
* Improvement: Removed redundant admin notifications code.
* Improvement: Added Polish translations - thanks Adam!
= 7.1 =
* Improvement: Added setup wizard.
* Improvement: Upgraded Chart.js to 2.8.0
* Improvement: Refactoring of file names.
* Improvement: Added filter "wlt-measurements" to allow filtering of measurement fields.
* Improvement: Removed redundant stats code.
* Improvement: Refactored some global constants.
* Improvement: Refactored code to remove un-needed function arguments.
* Improvement: Refactored code to remove un-needed property assignments.
* Improvement: Various refactorings of code.
* Bug Fix: Fixed "Weight Tracker Record" button at top of user header.
= 7.0.13 =
* Improvement: Allow filtering of Post URL for Weight Entry forms.
* Improvement: Updated Hebrew translations. Thanks @Roy
* Bug fix: Changed footable dates to use UTC methods.
* Bug fix: Fixed issue where a moment was being passed into footable.
= 7.0.12 =
* Improvement: Added URL field to awards.
* Bug fix: Fixed issue when no user side bar rows caused an error to be logged.
* Bug fix: Fixed issue with font awesome CSS not being enqueued properly.
= 7.0.11 =
= Bug Fix: Fixed an issue when looking for the functions ws_ls_harris_benedict_filter_calories_to_lose() and ws_ls_harris_benedict_filter_calories_to_add() when relevant files not included.
= 7.0.10 =
* Bug Fix: Fixed rounding issues that caused some weight loss awards not to be issued.
= 7.0.9 =
* New Feature: Added new shortcode to show difference between current weight and previous [wlt-weight-difference-previous]
* Improvement: Added a new setting to specify the calories required to gain weight.
* Improvement: Added the option to show and hide Gain or Loss calculations for MacroN and Calories.
* Improvement: Shortcodes now support "gain" figures.
* Improvement: New button to delete all awards for a user.
* Improvement: Replaced all intval() with (int).
= 7.0.8 =
* Improvement: Added screens to view user's for a given group (also able to remove).
* Improvement: Added a setting enable user's to edit their group.
* Bug Fix: Fixed Latest 100 / 500 entries on user data summary to fetch latest entries instead of oldest.
= 7.0.7 =
* Improvement: On user summary page, changed "Show All Entries" to "Show 500 most recent". On large sites, fetching all data was causing performance issues.
* Bug Fix: Fixed issues with selected="selected" randomly appearing.
* Bug fix: Removed duplicate chart opacity setting.
= 7.0.6 =
* Improvement: Added shortcode for user's previous weight [wlt-weight-previous]
* Improvement: Issue 179. Optimised deletion of redundant stats entries.
* Improvement: Issue 195. Increased award title length to 200 characters.
* Improvement: Issue 188. Display an admin warning if the Weight Tracker license expires within 14 days!
* Improvement: Issue 177. Updated Chart.js library.
= 7.0.5 =
* Improvement: Added additional Dutch translations.
= 7.0.4 =
* Improvement: Added Dutch Formal (copied from Dutch).
* Improvement: Increased granularity of height values.
* Improvement: Updated plugin title and description. Removed references to "loss" from "Weight Loss Tracker".
* Improvement: When a target is cleared, redirect back to current page so UI refreshes.
= 7.0.3 =
* Bug fix: Addressed another "Can't use function return value in write context" error in photos.
= 7.0.2 =
* Bug fix: Addressed a "Can't use function return value in write context" error in photos.
= 7.0.1 =
* Improvement: Added filter to allow a custom section to be inserted into user record.
= 7.0.1 =
* Bug fix: Fixed issue with "Warning: Invalid argument supplied for foreach()" in Awards
= 7.0 =
* New Feature: Pro Plus: Awards and Badges! Set awards for: BMI Change, BMI Equals, Weight Gain / Loss from start and Percentage of weight lost from start. Read more: https://weight.yeken.uk/awards
* New Feature: Pro: Added Groups. You can now group your members. https://weight.yeken.uk/groups
* New Feature: Pro: Birthday Emails. If enabled, automatically send a birthday email to applicable users.
* Improvement: Ability to clear log with "Clear log" button.
* Improvement: Caching can now be disabled in Settings.
* Improvement: Cache now cleared with each release (based upon version number).
* Bug fix: Fixed an issue during conversions when a non numeric value was passed.
= 6.1.1 =
* Improvement: Updated German translations. Thanks Benjamin.
* Bug fix: Typo fix.
= 6.1 =
* New Feature: Added a new Meta Field type of "Photos" (Pro only). This will allow site administrators to add one or more photo field per entry form.
* New Feature: Build in tool to migrate photos from old system to new.
* Improvement: Removed old photo upload and migrated to to new meta fields.
* Improvement: Added custom field data to email notifications.
* Improvement: Added additional logic to remove photos from media library when no longer used by Weight Tracker (e.g. user has deleted them)
* Improvement: Various minor tweaks to meta fields and validation.
* Improvement: Changed email format to HTML.
* Improvement: Optimised [wlt-new-users] to reduce size of data returned by query.
* Improvement: General PHP code tweaks to improve performance and maintainability ( based on PHPStorms recommendations).
* Bug fix: Class name not being correctly added to forms.
= 6.0.3 =
* Bug fix: Fixed issues with Hebrew not loading.
= 6.0.2 =
* Improvement: Added Hebrew.
* Bug fix: Removed error log count that check which was causing the custom fields to be added.
* Bug fix: Fixed issue where it would attempt the Custom Field default check on every admin page load!
= 6.0.1 =
* Bug fix: Removed error log count that check which was causing the plugin not to activate.
= 6.0 =
* New Feature: Added Custom Fields. Allow admin specified questions to be asked on weight entry forms.
* New Feature: Added Russian translations.
* Improvement: Updated Finnish translations.
* Improvement: Added error logging functionality.
* Improvement: Refactored Pro / Pro Plus features file include logic.
* Improvement: Upgraded Chart.js to 2.7.2
* Bug Fix: Fixed PHP errors causing the log entry "PHP Warning: count(): Parameter must be an array or an object that implements Countable"
= 5.4.5 =
* Bug Fix: Measurements are now exported (via CSV / JSON) as inches where applicable.
* Bug fix: Fixed text alignment in table headers for RTL languages.
= 5.4.4 =
* Improvement: Added Arabic for Saudi Arabia (front end only). Thanks @Saeed
= 5.4.3 =
* Improvement: Added new option "auto" for "progress" argument [wlt-calories progress="auto"] shortcode. It will display the calories for the aim specified by the user e.g. if they select Lose Weight it will show the calories required to lose.
* Improvement: Added new option "auto" for "progress" argument wlt-macronutrients progress="auto"] shortcode. It will display the relevant macroN for the aim specified by the user e.g. if they select Lose Weight it will show the calories required to lose.
= 5.4.2 =
* Improvement: Added filter to allow Macro N shortcode and allowed progress options to be modified.
= 5.4.1 =
Bug fix: Issue with is_Array() function killing certain shortcodes.
= 5.4 =
* Improvement: Added support for Gravity Forms - read more: https://weight.yeken.uk/gravity-forms/
* Improvement: Added filter to modify allowed wlt-if fields (wlt-filter-if-allowed-fields)
* Improvement: Added filter to allow new wlt-if conditions to be added (wlt-filter-if-condition-[field name])
* Bug fix: Ensured object is countable before trying to count() it.
* Security fix: Added rel="noopener noreferrer" to all links that open in a new window ( i.e. target="_blank" )
= 5.3.1 =
* Improvement: Added filter to modify allowed wlt-if fields (wlt-filter-if-allowed-fields)
* Improvement: Added filter to allow new wlt-if conditions to be added (wlt-filter-if-condition-[field name])
= 5.3 =
* Improvement: Added filter to allow Activity Levels to be overridden (wlt-filter-activity-levels)
* Improvement: Added filter to allow Aims to be overridden (wlt-filter-aims)
* Improvement: Added filter to allow BMR calculation to be overridden (wlt-filter-bmr-calculation)
* Improvement: Added filter to allow Macro calculation per meal to be overridden (wlt-filter-macros-[key])
* Improvement: Added filter to allow Macro calculations per total to be overridden (wlt-filter-macros-[key]-total)
* Improvement: Added filter to allow all Macro calculations to be overridden (wlt-filter-macros)
* Improvement: Added filter to display an additional field below gender on user preferences form (wlt-filter-user-settings-below-gender)
* Improvement: Added filter to change a user's setting ('wlt-filter-user-setting-[key])
* Improvement: Added filter to allow calories to be overridden (wlt-filter-calories-lose)
* Improvement: Added filter to allow calories to maintain weight to be overridden (wlt-filter-calories-maintain)
* Improvement: Added filter to allow calories to lose weight to be overridden (wlt-filter-calories-lose)
* Improvement: Added filter to allow table rows to be filtered in Harris Benedict tables (wlt-filter-harris-benedict-rows)
* Improvement: Added filter to allow default macros to be specified and override WLT plugin. (wlt-filter-macros-custom)
* Improvement: Added filter to allow specify what types of calories should be converted into macros. wlt-filter-macros-calculate)
* Improvement: Added filter to allow specify what types of macros should be displayed. wlt-filter-macros-display)
= 5.2.26 =
* Improvement: Added Slovakian translations (thanks @Richard)
* Improvement: Added a new filter "wlt-filter-form-saved-message" to allow the save confirmation on form submission to be changed.
= 5.2.25 =
* Bug fix: Don't display notification from YeKen if it's blank!
= 5.2.24 =
* Added additional German translations (thanks @Benjamin)
= 5.2.23 =
* SVN Repo fix.
= 5.2.22 =
* Bug fix: CSV export. If the column is missing in underlying data then add a dummy field.
* Bug fix: Only display users on the stats table if they still exist in WP Users table.
* Bug fix: Correct display Pro Plus license price from Yeken Data feed.
* Bug fix: Only tell YeKen of license deactivation when one actually occurs.
* Bug fix: Fixed wpdb->prepare() errors thrown on user search.
* Reviewed data santisation and where required called relevant WordPress functions to sanitise user data.
* Removed redundant files.
* Removed commented lines of code.
= 5.2.21 =
* Added caching for user lookup.
= 5.2.20 =
* Added tweaks to Admin search for to support future AJAX lookups.
* Added some core functions to to lookup a user's previous weight and difference between that and latest.
* Added some core functions for fetching a user and limiting search results.
= 5.2.19 =
* Bug fix: If measurements enabled, ensure one or measurement fields have been enabled before rendering form fields.
* Added a hidden tool to fix the accuracy of Stones and Pounds to Kg.
= 5.2.18 =
* Improvement: Added options to allow admins to specify a fill colour and opacity under the weight line on charts.
* Improvement: Added new options to allow admins to specify font family and colour for charts.
* Updated Chart.js to 2.7.1
= 5.2.17 =
* Improvement: Added Arabic translations (thanks Firas).
* Bug fix: Record license expired properly.
* Bug fix: Clear WLT cache when plugin has been upgraded.
* Bug fix: Fixed rounding issues in data tables causing differences to look wrong.
= 5.2.16 =
* Improvement: Added additional argument for [wlt] shortcode that disables the check to see if [wlt] has already been placed on the page. Some users (and clashing plugins) were causing it to fail.
* Bug fix: Allow decimal entries for pounds (when in stones and pounds).
* Bug fix: When display comparison values, a rounding to one decimal place was causing the difference values to be slightly out. This has been changed to two decimals.
= 5.2.15 =
* Bug fix: When "Server Default" was selected for Photo uploads it would not allow any photo uploads to happen. This has been fixed.
* Added helper function ws_ls_if() for simplified IF checks.
= 5.2.14 =
* Updated Dutch translations (Thanks Robin!)
= 5.2.13 =
* Bug fix: Sorted issue with user preferences not being saved correctly
= 5.2.12 =
* Improvement: Refactored User preferences code so it can be extended.
* Improvement: Added new filters "wlt-filter-admin-user-sidebar-top", "wlt-filter-admin-user-sidebar-middle" and "wlt-filter-admin-user-sidebar-bottom" to allow developers to add HTML to user sidebar in "Manage Data".
* Improvement: Added new filter "wlt-filter-js-ws-ls-config" to allow developers to filter JS config.
* Improvement: Added new filter "wlt-filter-user-settings-below-aim" to allow developers to add to the User settings page.
* Improvement: Added the filters 'wlt-filter-user-settings-db-formats' and 'wlt-filter-user-settings-save-fields' to allow a developer to save other user preference fields.
* Bug fix: Stopped [wlt-calories] and [wlt-macronutrients] throwing an error when the user was logged out. Thanks @MARKONEX
* Bug fix: Fixed a bug where "Your modifications have been saved" message was always being shown on [wlt-table] shortcode.
* Database schema changes for future releases.
= 5.2.11 =
* Fixed a PHP check on a constant that in some cases threw an exception.
= 5.2.10 =
* Added some additional CSS to help those who have a theme that hides the [wlt] shortcode.
= 5.2.9 =
* Removed email from being sent when License expired. Appears it is sending in some cases when the license has not expired!
= 5.2.8 =
* Improvement: Added a new "About You" field called "Aim". This allows the user (or Admin) to specify their aim e.g. maintain, gain, or lose weight.
* Improvement: Expanded [wlt-if] to include a new field of "aim". Read more: https://weight.yeken.uk/shortcodes/
* Improvement: Calorie caps can now be disabled by setting them to 0.
* Improvement: jQuery validation added to prompt the user to upload a smaller image if above file size limit.
* Improvement: New setting to limit the file size of images being uploaded.
* Improvement: Added check to ensure [wlt] shortcode is only placed once on a page or post.
* Improvement: An email is set to the Admin email address when the license expires.
* Improvement: License expire notifications are now sent to YeKen.
* Improvement: New hook "wlt-hook-license-expired" is fired when a license expires.
* Improvement: Removed setting "Advanced data tables?". This has been moved onto the shortcode themselves. See [wlt] argument "disable-advanced-tables". Read more: https://weight.yeken.uk/shortcodes/
* Improvement: Removed setting "Display in tabs?". This has been moved onto the shortcode themselves. See [wlt] argument "disable-tabs". Read more: https://weight.yeken.uk/shortcodes/
* Improvement: Merged and tidied up "User Experience" and "General" setting tabs.
* Improvement: Updated Chart.js to 2.7.0. Read more: https://github.com/chartjs/Chart.js/releases/tag/v2.7.0
* Bug fix: Ensured the string "photo" can be translated on [wlt] shortcode.
* Bug fix: Fixed issue where the width of chart lines was being effected by the chart "width" attribute.
* Removed "width" argument from [wlt-chart]. The attribute wasn't used.
* Notifications from YeKen are on by default and disabled when
* Updated Languages.
= 5.2.7 =
* Improvement: Added 7 day trial button
* Bug fix: Ensured the string "This field is required." can be translated.
* Bug fix: Fixed issue with empty "dob" field when using [wlt-if] shortcode.
= 5.2.6 =
* Updated language files again :(
= 5.2.5 =
* Updated language files
= 5.2.4 =
* Improvement: Added an Advanced tab to [wlt] shortcode to display a BMI, BMR, Calories and Macronutrients. This tab can be hidden with the attribute "hide-tab-advanced" - Read more: https://weight.yeken.uk/shortcodes/
* Improvement: Added a Photos tab to [wlt] shortcode to display a gallery. This tab can be hidden with the attribute "hide-tab-photos" - Read more: https://weight.yeken.uk/shortcodes/
* Improvement: Added footable.js to Macronutrient and Calorie tables in Admin (tables looks a lot better in responsive mode).
* Improvement: Added "alternate" class for Macronutrient table to make alternative rows stand out.
* Bug fix: Ensured "No data found" can be translated on data tables.
* Bug fix: Show hamburger menu icon on tabs.
= 5.2.3 =
Removing changes that weren't supposed to go out in 5.2.2 as they weren't completed! Apologies!
= 5.2.2 =
* Improvement: Added footable.js to Macronutrient and Calorie tables (tables looks a lot better in responsive mode).
* Bug fix: Fixed "Can't use return function in write context" appearing in older versions of PHP.
* Bug fix: Ensured "Measurements are in" can be translated.
* Bug fix: Ensured "Search" text on new data tables can be translated.
= 5.2.1 =
* Bug fix: Fixed issue with target weight failing to save if photos enabled.
= 5.2 =
* Photo Uploads!
* New field on attachments "Don't show to public" (set to true by default) to stop user photo's being rendered on standard attachment pages.
* Users can now upload / replace / remove a photo alongside their weight / measurement entries.
* Admin can view all photos uploaded by a user.
* Admin can upload / replace / remove a user's photo.