considbrs-webdev / modularity-simpleview-events
Modularity Simpleview Events Module
Package info
github.com/Considbrs-Webdev/modularity-simpleview-events
Type:wordpress-plugin
pkg:composer/considbrs-webdev/modularity-simpleview-events
dev-main
2026-01-30 10:17 UTC
Suggests
- helsingborg-stad/municipio: ^6.0.0
README
A WordPress plugin for integrating events from the Simpleview API into WordPress.
Features
- Dynamically create post types and taxonomies from the Simpleview API
- Automatic synchronization via WP Cron
- Manual sync trigger from admin settings
- Configurable API credentials and sync frequency
Installation
- Place the plugin in
wp-content/plugins/modularity-simpleview-events/ - Run
composer dumpto create a new autoloader - Activate the plugin through the WordPress admin
Configuration
- Navigate to Simpleview Events > Settings
- Configure your API credentials:
- API Base URL
- API Key
- Set your preferred sync frequency (hourly, twice daily, or daily)
- Use the "Sync Now" button to perform an initial manual sync
CLI Commands
The plugin provides WP-CLI commands for managing Simpleview events data:
Sync Events
Sync events from the Simpleview API:
wp simpleview-events sync
Options:
--wipe- Wipe all existing data before syncing (requires confirmation)
Examples:
# Run sync wp simpleview-events sync # Wipe all existing data and sync fresh wp simpleview-events sync --wipe
Wipe Data
Delete all synced Simpleview events data (posts, terms, and options):
wp simpleview-events wipe
Options:
--confirm- Skip confirmation prompt (use with caution)
Examples:
# Wipe all data (with confirmation prompt) wp simpleview-events wipe # Wipe all data (skip confirmation) wp simpleview-events wipe --confirm
Show Statistics
Display sync statistics including total events, post types, and last sync time:
wp simpleview-events stats
This command shows:
- Total events count
- Draft events count
- Number of post types
- Last sync timestamp
- Post type breakdown with media channel information
Development
The plugin structure follows the pattern established by modularity-municipal-calendar:
source/php/- PHP source filessource/php/AcfFields/- ACF fields for the general settings pagesource/php/Admin/- Admin functionalitysource/php/Api/- API client for Simpleviewsource/php/cli/- CLI commands for syncing eventssource/php/Cron/- WP Cron schedulingsource/php/PostType/- Post type mapping logicsource/php/Sync/- Synchronization logicsource/php/Taxonomy/- Taxonomy mapping logic
License
MIT