=== Multisite Event Sync ===
Contributors: softwaregutachten
Donate link: https://softwaregutachten.at/wp-plugin-forge/
Tags: events, multisite, the events calendar, synchronization, cron
Requires at least: 6.0
Tested up to: 6.8
Stable tag: 1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Synchronizes events from subsites in a WordPress Multisite network into the main site's calendar (The Events Calendar plugin).

== Description ==

This plugin allows you to automatically collect and display events from subsites within a WordPress Multisite installation on the main site. It supports:

* Daily synchronization via cron job
* Manual synchronization via admin interface
* Selection of which subsites to include
* Import and update of event content and metadata
* Clean removal of outdated events

The plugin works with "The Events Calendar" and pulls `tribe_events` from each selected subsite into the main site's event calendar.

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/multisite-event-sync/`
2. Activate the plugin from the **Plugins** menu in the main site admin
3. Navigate to **Event Sync** in the admin menu
4. Select the subsites you want to include
5. Click **Save Selection** and run manual sync, or wait for the daily cron to run

== Frequently Asked Questions ==

= Does this plugin work without "The Events Calendar"? =
No, it requires "The Events Calendar" plugin to be active on the subsites and the main site.

= Does it sync events both ways? =
No. Events are imported **from the subsites to the main site only**.

= What happens if an event is deleted on a subsite? =
It will automatically be removed from the main site during the next synchronization.

= Can I disable certain subsites from being synced? =
Yes, you can choose which subsites to include via checkboxes in the admin panel.

== Screenshots ==

1. Admin interface to select subsites and start sync manually
2. Resulting events listed in the main site calendar

== Changelog ==

= 1.0 =
* Initial release
* Daily cron sync
* Manual sync via admin interface
* Subsite selection
* Event cleanup and update logic

== Upgrade Notice ==

= 1.0 =
Initial version  stable and ready to use.
