Hi.
tribe_events_get_days_of_week() is at https://github.com/moderntribe/the-events-calendar/blob/4.4.1.1/src/functions/template-tags/general.php#L693-L725
Your initial response said ‘min’ but then you pointed to get_localized_months_short()
So are you trying to use ‘min’ or ‘short’?
And that method is located here: https://github.com/moderntribe/tribe-common/blob/4.4.1/src/Tribe/Date_Utils.php#L588-L614
For reference, here’s what each of these returns for me:
That last one caused a WP_DEBUG message:
[02-Feb-2017 04:01:30 UTC] PHP Notice: Undefined offset: 0 in /wp-content/plugins/the-events-calendar/src/functions/template-tags/general.php on line 719
[02-Feb-2017 04:01:30 UTC] PHP Stack trace:
[02-Feb-2017 04:01:30 UTC] PHP 1. {main}() /index.php:0
[02-Feb-2017 04:01:30 UTC] PHP 2. require() /index.php:17
[02-Feb-2017 04:01:30 UTC] PHP 3. require_once() /wp-blog-header.php:19
[02-Feb-2017 04:01:30 UTC] PHP 4. include() /wp-includes/template-loader.php:74
[02-Feb-2017 04:01:30 UTC] PHP 5. tribe_get_view() /wp-content/plugins/the-events-calendar/src/views/default-template.php:21
[02-Feb-2017 04:01:30 UTC] PHP 6. include() /wp-content/plugins/the-events-calendar/src/functions/template-tags/general.php:45
[02-Feb-2017 04:01:30 UTC] PHP 7. tribe_get_template_part() /wp-content/plugins/the-events-calendar/src/views/month.php:22
[02-Feb-2017 04:01:30 UTC] PHP 8. include() /wp-content/plugins/the-events-calendar/src/functions/template-tags/general.php:131
[02-Feb-2017 04:01:30 UTC] PHP 9. tribe_get_template_part() /wp-content/plugins/the-events-calendar/src/views/month/content.php:39
[02-Feb-2017 04:01:30 UTC] PHP 10. include() /wp-content/plugins/the-events-calendar/src/functions/template-tags/general.php:131
[02-Feb-2017 04:01:30 UTC] PHP 11. tribe_events_get_days_of_week() /wp-content/plugins/the-events-calendar/src/views/month/loop-grid.php:17
I’ve logged this bug regarding tribe_events_get_days_of_week( 'short' )
and our developers will eventually look into it.
Please let me know if you think I’ve missed anything else important about this issue.
Thank you for reporting it.