Developer

Client Library Overview

The SLSWC Client library enables WordPress plugins and themes to check for updates, manage licenses, and enforce DRM against an SLSWC-powered license server.

DRM (Digital Rights Management)

The DRM system enforces license compliance through escalating admin notices and a full-page interstitial lock. It only affects the WordPress admin area -- front-end functionality is never impacted.

Developer Guide

This guide covers how to integrate with and extend the SLSWC (Software License Server for WooCommerce) plugin: the REST API, the client library for plugins and themes, hooks, filters, and extensibility points.

Extending License Server

SLSWC provides many extension points for developers to customize behavior without modifying core files.

Payment Gateway Development

SLSWC provides a framework for building WooCommerce payment gateways that support subscriptions, block checkout, and webhook handling.

Composer Repository

SLSWC provides a private Composer repository endpoint that allows customers to install and update plugins and themes via Composer using their license keys for authentication.

Auto-Updates

The SLSWC Client library integrates with the WordPress update system to check for and deliver plugin/theme updates from your license server.

Hooks Reference

Comprehensive reference of all slswc_* actions and filters. Organized by category.

Cache Expiry Filters

SLSWC caches many API responses and license queries in WordPress transients. Each cache has a filter that sets how long the cached value lives. All cache expiry filters accept and return an int (seconds).

Theme Integration

This guide explains how to integrate the SLSWC Client library into a WordPress theme for automatic updates and license management.