WP Manifestindependent plugin directory

CP Sync

ChurchPlugins integration plugin for ChMS

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/church-plugins/cp-sync/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Church Plugins Sync

Connection plugin for various ChMS

First-time installation
  • Copy or clone the code into wp-content/plugins/cp-sync/
  • Run these commands
    composer install
    npm install
    cd app
    npm install
    npm run build
Dev updates
  • There is currently no watcher that will update the React app in the WordPress context, so changes are executed through npm run build which can be run from either the cp-sync

Change Log

0.3.1

  • Bug Fix: Fixed incomplete venues created during initial import — venue creation now deferred to enrichment phase where full address data is available
  • Bug Fix: Fixed stale venue associations persisting when a location is removed in CCB
  • Enhancement: Two-phase enrichment strategy for CCB events — always enriches new events, then uses modified timestamps to detect changes on subsequent syncs
  • Enhancement: Eliminated duplicate API calls during CCB event re-enrichment (single event_profile call instead of two)
  • Enhancement: Added session-based venue deduplication to prevent redundant updates when multiple events share a venue
  • Enhancement: Added shimmer loading skeleton to settings page while JS bundle loads
  • Documentation: Documented CCB event enrichment behavior, the new cp_sync_{$type}_update_item_after action hook, and updated venue/location guidance in the troubleshooting and TEC integration guides

0.3.0

  • New Feature: CCB event enrichment — automatically fetches full venue addresses and event images from the event_profile endpoint after initial import
  • Enhancement: CCB venue import now supports full location data (street address, city, state, zip)
  • Enhancement: Custom XML parser preserves CCB API attributes for reliable event ID extraction
  • Enhancement: Graceful enrichment failure handling — errors don't block event import

0.2.0

  • Breaking Change: CCB now uses Basic Authentication (username/password) instead of OAuth. Existing users will need to reconnect with API credentials.
  • New Feature: Added WP-CLI commands for CCB debugging (wp cp-sync ccb test-connection)
  • New Feature: Added configurable date range for CCB event sync with multiple preset options
  • New Feature: Added option to remove events outside the configured date range
  • New Feature: Added cp_sync_{type}_should_remove_item filter for custom removal logic
  • Enhancement: Completely redesigned CCB connection interface with improved user experience
  • Enhancement: Added migration notice for users upgrading from OAuth to Basic Auth
  • Enhancement: Enhanced preview component with better content display and date range information
  • Enhancement: Comprehensive logging improvements throughout sync process for better debugging
  • Enhancement: Better error handling and reporting during sync operations
  • Bug Fix: Fixed CCB authentication issue that prevented connections from working properly
  • Bug Fix: Fixed plugin crash when CP Groups plugin is not active
  • Bug Fix: Fixed PHP 8 compatibility warnings when syncing groups without leader information
  • Bug Fix: Fixed events being updated with incorrect venue and organizer information
  • Bug Fix: Fixed issue where meeting times with invalid formats would cause PHP warnings
  • Enhancement: Refactored date range logic to eliminate code duplication and improve maintainability
  • Enhancement: Enhanced sync status indicator to update more reliably in real-time
  • Enhancement: Added date validation in admin interface to prevent selecting invalid date ranges

0.1.7.2

  • Bug Fix: Fixed PCO event import to use event instance ID instead of event ID for chms_id
  • Bug Fix: Fixed thumbnail update logic to properly check for existing thumbnails
  • Enhancement: Added PCO-specific image URL normalization using unique 'key' parameter
  • Enhancement: Implemented image reuse system to avoid duplicate downloads from media library
  • Enhancement: Optimized image import by checking for existing attachments before sideloading
  • Bug Fix: Fixed wp_insert_attachment parameter to use correct post ID
  • Enhancement: Store normalized URL in attachment meta for efficient image reuse
  • Bug Fix: Fixed React console warnings by adding proper keys to components

0.1.7

  • Enhancement: Added comprehensive logging to PCO registration event import process
  • Enhancement: Improved debugging capabilities for troubleshooting import issues
  • Enhancement: Added detailed logging for API responses, filtering, and event processing
  • Bug Fix: Fixed OAuth redirect URL construction for admin pages

0.1.6

  • Enhancement: to the CCB sync
  • Enhancement: better image importing
  • Enhancement: add security check to api endpoints
  • Bug Fix: Update api endpoints

0.1.5

  • Re-build assets

0.1.4

  • Re-build assets

0.1.3

  • Add more mapping fields for MinistryPlatform

0.1.2

  • Add CCB support

0.1.1

  • Better handling for location setting
  • Update post after initial save to handle duplicate slugs

1.0.0

  • Initial release