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.
| Way | For | Plan |
|---|---|---|
| Hooks | A 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 content | A headless front end or app that shows the content of the site in a language, and lists the languages. | Free |
| REST API for translations | An agency’s import, a headless editor, a script, or an AI agent (WordPress Abilities API). | Pro |
| WP-CLI | wp 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.