Skip to content
Black Friday

20% off for every Pro licenses

BLACKFRIDAYClaim the Offer
Contact us

Developer Docs: Overview

These guides are for theme and plugin developers who want to work with media offloaded by Media Cloud Sync: reading files, adjusting URLs and paths, reacting to uploads, and making their own content cloud-aware.

  1. Constants and Configuration
  2. Hooks Reference
  3. Making Your Plugin Cloud-Aware
  4. Helper API and Data Model
  5. WP-CLI Commands

Before you start

  • Namespace: all plugin classes live in Dudlewebs\WPMCS.
  • Prefix: every hook starts with wpmcs_.
  • Load order: add your hooks on plugins_loaded (or later) and check the plugin is active first:
add_action( 'plugins_loaded', function () {
    if ( ! defined( 'WPMCS_VERSION' ) ) {
        return; // Media Cloud Sync isn't active.
    }
    // Register your wpmcs_* hooks here.
} );
  • Prefer WordPress core APIs. wp_get_attachment_url(), wp_get_attachment_image_src(), wp_get_attachment_image(), wp_calculate_image_srcset(), and get_attached_file() are already filtered by the plugin. They return cloud URLs (or a readable path) automatically. Most integrations need nothing more.
  • Stability: the hooks and helpers documented here are the supported public surface. Classes and methods that aren’t documented are internal and may change without notice.