Developer Guide

REST API, client library, hooks and extension points.

Sub-categories

Articles

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.

Hooks Reference

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

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.

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.

REST API Overview

The simplest API call is checking a license status. Here is how to do it with curl:

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).

License Endpoints

These endpoints are called by remote sites running the SLSWC Client library. Authentication is via license_key parameter validation.

Plugin Integration

This guide explains how to integrate the SLSWC Client library into a WordPress plugin for automatic updates, license management, and optional DRM enforcement.