| 开发者 | sapphireit |
|---|---|
| 更新时间 | 2026年10月18日 16:02 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
sit-cwm/v1. Everything the UI does is an
endpoint you can call yourself.sit_cwm_change_workflowsit_cwm_review_contentsit_cwm_approve_contentsit_cwm_approve_content plus WordPress publish_postsit_cwm_status_changed,
sit_cwm_can_transition, sit_cwm_transition_map and more) so it can be
extended without editing its files.
/wp-content/plugins/sapphireit-editorial-workflow/, or
install it through Plugins → Add New → Upload Plugin.No, and that is deliberate. The workflow status and the WordPress post status are separate fields. Marking a post as Published in the workflow records that the editorial process is complete; a human still hits Publish. Keeping them apart is what lets a scheduled post keep its schedule while it is being approved, and lets an already-live article go back through a round of edits without disappearing from your site.
Not in version 1.0. Notifications are on the roadmap. The
sit_cwm_reviewer_assigned action fires on every assignment, so a few lines in
a site plugin can send whatever you need today.
Yes. The plugin adds six ordinary WordPress capabilities (sit_cwm_*), so any
role or capability manager can move them around. For finer rules — "only the
assigned reviewer may approve", say — the sit_cwm_can_transition filter has
the final word on every decision.
The sit_cwm_statuses and sit_cwm_transition_map filters replace the status
registry and the transition graph. Both results are validated, so a mistake in
your code cannot leave the plugin in a broken state. There is no settings screen
for editing statuses or building multiple workflows in version 1.0.
Yes. Any editorial content type (one with an admin UI, REST API support and the
editor feature) can be enabled in the settings. Back-office types such as shop
orders and coupons are not offered; developers can change the list with the
sit_cwm_available_post_types filter. The plugin uses post meta, so there is
nothing to migrate and nothing to convert.
Yes. In the classic editor the workflow controls appear in an Editorial Workflow box in the sidebar column. Changes there save immediately, independently of the Update button.
Deactivating changes nothing — your statuses, reviewers, due dates and history stay. Deleting the plugin keeps them too, unless you have ticked Delete all workflow data when the plugin is deleted under Editorial Workflow → Settings. With that option on, deleting the plugin permanently removes the activity table, workflow post meta, settings and capabilities.
In the plugin's own activity table, shown in the timeline in the sidebar (or the classic editor box). They are editorial notes, so they never appear on the front end and are not mixed in with your readers' comments.
Yes, at /wp-json/sit-cwm/v1/. Eight documented endpoints, all authenticated,
all with JSON schemas, and usable with application passwords.
No. It makes no remote requests, loads nothing from a CDN, sets no cookies of its own and collects no usage data. Everything stays in your WordPress database.
The editor sidebar, classic editor box and dashboard ship as compiled files in
assets/build/. The human-readable React source is in the src/ directory of
the public repository at
https://github.com/rshalihin/sapphireit-editorial-workflow. Run npm install
and then npm run build to rebuild the compiled files.
sit-cwm/v1, with actions and filters for extending the
plugin.