Dokumentation / Entwickler
SwiftLing bietet vier Möglichkeiten, es aus dem Code heraus zu nutzen. Die folgenden Seiten dienen als technische Referenz. Sie werden in den Plugin-Repositories (docs/) gepflegt und hierher kopiert.
| 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 |
Jede Anfrage erfolgt im Namen eines Benutzers und kann alles tun, was dieser Benutzer im Übersetzungseditor tun darf.