/var/log

Settings

On this page all options of the Private Google Calendars settings page are explained.

General settings

Cache time in minutes

If this value is empty or 0 (zero) then no caching is done. This means that every time your calendars are displayed, for each calendar a request to Google is made. If you have multiple calendars, this can take some time. If you set this value for example to 1440 then these requests are cached for one day, which speeds up the calendars enormously.

The disadvantage is that if you change something in your Google calendars, like adding or removing a an event, then this change won't be visible for as long as the cache is valid. However you can remove the cache with the "Remove cache" button at the bottom on the settings page.

Show private events

It's possible to make a Google calendar event to be private. Select this option if you want these private events to be displayed in your calendars.

FullCalendar version

This plugin uses FullCalendar to display the events. FullCalendar is one of the most used Javascript calendar libraries. The current version is 6 and this is the preferred version for this plugin. Version 4 will be removed in the next update of this plugin.

FullCalendar theme

This plugin currently adds 2 themes: a light and dark one. If you want to create your own theme or styling, you can take a look at the CSS files of these themes as a starting point. You can find them at the wp-content/plugins/private-google-calendars/css/themes directory.

If you want to use your own CSS files, add them to the uploads/pgc_themes directory and they will be picked up by this plugin and you can choose your own theme.

If you have a good looking theme, you can always send it to me and maybe I'm adding it to the default themes.

Public calendar settings

API key

Important: using an API key used to work, but this isn't officially supported by Google. So it might still work or not. It's better to use the authorisation process outlined in the getting started page.

Public calendars

If you want to display public calendars you can just enter the calendar ID on the page or widget where you want to use this calendar. But then the calendar ID will be displayed in a default color. If you want to display a specific title and color for the calendar, you can enter them here.

Private calendar settings

Upload client secret

When you haven't authorised this plugin to access your Google calendars yet, you first need to do this and you will see this "Upload client secret" section. See the getting started page for more information about this process.

Select calendars

After this plugin has been authorised to access your Google calendars, you'll see all the calendars that are linked to your account. You can select the calendars you want to make available to your website.

Tools

Update calendars

If you made some changes to your Google calendars, like adding or removing a calendar or choosing a different color, you can click this button to download the changes.

Get colorlist

If you use custom colors for calendar events, you have to download the colorlist once.

Verify

This will verify if the authorisation has been setup correctly.

Cache

Here you can remove the cache.

Revoke access

Here you can revoke the access of this plugin to your Google calendars. This can also be done manually at the Google permissions page. Note that this will stop this plugin from working.

Remove plugin data

Here you can remove all the data this plugin has saved. Note that this will NOT revoke access, this must be done with the Revoke access button or manually from the Google permissions page.

Options for wp-config.php

You can set the following options in wp-config.php:

  • PGC_EVENTS_MAX_RESULTS (default 250) – Maximum number of events that Google returns.
  • PGC_EVENTS_DEFAULT_TITLE (default "") – If the title of an event is empty, which can happen when the status is busy, the value of this option is displayed instead.