Für Entwickler

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.

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

Jede Anfrage erfolgt im Namen eines Benutzers und kann alles tun, was dieser Benutzer im Übersetzungseditor tun darf.