# Eventilla WordPress plugin

Display events via Eventilla API. Add events to content via shortcode.

## Plugin requirements

- Requires support for PHP SimpleXML library

## Plugin restriction

- Because of duplicate ids in eventilla form.

## Updating the plugin

When publishing an update, update the version number in the `eventilla-wp.php` file:

```
define('EVENTILLA_WP_VERSION', '1.9.0');
```

If there are any changes you need to run once after the plugin is updated, add a new function to the `includes/class-eventilla-wp-updater.php` files `$updates` array. Key is the version number and value is the function name to be ran once from the class.

## Librariers

### Action Scheduler

Eventilla plugin uses [Action Scheduler library](https://actionscheduler.org/) to schedule actions. The repository has been added as a remote subtree `subtree-action-scheduler` to the plugin repository.

#### Updating Action Scheduler

Note that Action Scheduler utilizes [L-2 policy](https://developer.woocommerce.com/2023/10/24/action-scheduler-to-adopt-l-2-dependency-version-policy/) meaning, it supports the latest 2 versions of WordPress.

To update the library, run the following command:

```
git fetch subtree-action-scheduler <version tag>
git subtree pull --prefix libraries/action-scheduler subtree-action-scheduler <version tag> --squash
```
