For developers

Documentation / Developers

SwiftLing offers four ways to work with it from code. The pages below are the technical reference; they are maintained in the plugin repositories (docs/) and copied here.

WayForPlan
HooksA plugin or theme that wants to add its own texts, forms or builders to SwiftLing, or read its state. SwiftLing Pro itself is built on them alone.Free
REST API for contentA headless front end or app that shows the content of the site in a language, and lists the languages.Free
REST API for translationsAn agency’s import, a headless editor, a script, or an AI agent (WordPress Abilities API).Pro
WP-CLIwp swiftling …: status, check, translate, export, import, flush the cache.Pro

Every request is made as a user and may do what that user may do in the translation editor.