Hooks - joedolson/my-calendar GitHub Wiki

category-icons.php

class-gamajo-template-loader.php

class-my-calendar-today-widget.php

conditionals.php

date-utilities.php

db.php

  • mc_db_prefix Filter the database prefix. Useful when accessing a remote database with a different prefix.

deprecated.php

event-utilities.php

general-utilities.php

ical.php

  • mc_event_has_alarm Filter information used to set an alarm on an event in .ics files.
  • mc_ical_timezone Filter TimeZone passed to DateTimeZone to set event timezone in iCal.
  • mc_ical_x_published_ttl Filter the suggested frequency for iCal subscription sources to be rechecked. Default 1440 (One day in minutes).

kses.php

legacy-functions.php

my-calendar-access-terms.php

my-calendar-api.php

my-calendar-categories.php

my-calendar-core.php

my-calendar-design.php

my-calendar-event-editor.php

my-calendar-event-manager.php

my-calendar-events.php

  • mc_event_object Customize the My Calendar event object.
  • mc_filter_events Filter events returned by mc_get_all_events queries. Function returns a range of events based on proximity to the current date using parameters for number of days/events before or after today.
  • mc_filter_offset Filter timezone offset applied when displaying events. Can fix issues with an incorrect server time.
  • mc_get_events_sites Filter site parameter in queries on a multisite network. Allows a query to show events merged from multiple sites using a single shortcode.
  • mc_happening_next_template Customize the template used to draw the next event shortcode output.
  • mc_happening_now_template Customize the template used to draw the "happening now" shortcode output.
  • mc_primary_sort Set primary sort for getting happening events. Default 'occur_begin'.
  • mc_rss_feed_date_range Filter how many days of newly added events will be included in ICS subscription links.
  • mc_search_attributes Filter advanced search query arguments.
  • mc_searched_events Filter search events.
  • mc_secondary_sort Set secondary sort for getting happening events. Default 'event_title ASC'.
  • my_calendar_events_args Filter calendar event query arguments.

my-calendar-generator.php

my-calendar-group-manager.php

my-calendar-help.php

my-calendar-install.php

my-calendar-limits.php

my-calendar-location-manager.php

my-calendar-locations.php

my-calendar-migrate.php

my-calendar-navigation.php

my-calendar-output.php

my-calendar-print.php

my-calendar-search.php

my-calendar-settings.php

  • mc_after_settings Render content after settings panels have displayed. Default ''.
  • mc_capabilities Add custom capabilities to the array of My Calendar permissions. New capabilities can be assigned to roles in the My Calendar settings.
  • mc_save_settings Run when settings are saved. Default ''. First argument is a remnant from when this was a filter.
  • mc_settings_section_links Add additional buttons to collection of settings tabs.

my-calendar-shortcodes.php

  • mc_display_author Filter the author parameter for a My Calendar view if set as 'current'. Default current user ID.
  • mc_display_host Filter the host parameter for a My Calendar view if set as 'current'. Default current user ID.

my-calendar-templates.php

my-calendar-widgets.php

  • mc_draw_todays_event Draw a custom template for today's events. Returning any non-empty string short circuits other template settings.
  • mc_draw_upcoming_event Draw a custom template for upcoming events. Returning any non-empty string short circuits other template settings.
  • mc_event_today Filter the array of events listed in today's events lists.
  • mc_include_today_in_total Should today's events be counted towards total number of upcoming events. Default yes. Any value other than 'no' will be interpreted as 'yes'.
  • mc_today_attributes Modify the arguments used to generate today's events.
  • mc_todays_events_after Closing elements for today's events list items. Default </li>.
  • mc_todays_events_before Modify the HTML preceding each list item in a list of today's events.
  • mc_todays_events_footer Replace the list footer for today's events lists. Default value </ul>.
  • mc_todays_events_header Replace the list header for today's events lists. Default value <ul id='todays-events-$hash' class='mc-event-list todays-events'$lang>.
  • mc_upcoming_attributes Modify the arguments used to generate upcoming events.
  • mc_upcoming_date_from Custom upcoming events date start value for upcoming events lists using date parameters.
  • mc_upcoming_date_to Custom upcoming events date end value for upcoming events lists using date parameters.
  • mc_upcoming_events_footer Replace the list footer for upcoming events lists. Default value </ul></div>.
  • mc_upcoming_events_header Replace the list header for upcoming events lists. Default value <div class='mc-event-list-container'><ul id='upcoming-events-$hash' class='mc-event-list upcoming-events'$lang>.
  • mc_upcoming_events_template Pass a custom template to the upcoming events list. Template can either be a template key referencing a stored template or a template pattern using {} template tags.

my-calendar.php

post-types.php

screen-options.php

tribe.php

urls.php

⚠️ **GitHub.com Fallback** ⚠️