| 开发者 | sapphireit |
|---|---|
| 更新时间 | 2026年10月9日 22:30 |
| PHP版本: | 8.0 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
sapphireit-publish-guard.zip to your WordPress site.By default, the product stays in draft instead of being published, and a notice explains which checks need attention. You can optionally allow users who can manage WooCommerce to publish anyway in the settings.
No. Enforcement applies when a product moves into Published or Scheduled. A live product that later fails a check shows the problem in its checklist and in the Products list, but it is not automatically taken offline.
Only if you enable Allow users who can manage WooCommerce to publish anyway on the settings screen. This option is off by default.
WP-CLI requests and requests without a signed-in user are not blocked, so imports and system jobs are not silently turned into drafts. Scheduled publishing is checked when the scheduled time arrives; a scheduled product that fails its required checks is returned to draft.
Yes. Under Enforcement applies to, choose Admin editor screens only. The default, All signed-in requests, also covers the REST API and code that saves products through WooCommerce for a signed-in user.
The checklist panel currently appears in the classic product editor, not the newer product block editor. Publishing enforcement still works when the block editor saves through the WooCommerce REST API.
A variable product's price lives on its variations, and variation-level checks are not part of this version. Grouped products are also skipped by the regular price check.
Not in this version. Readiness is calculated when the list is shown and is not stored.
Yes. Register a rule on the sit_wcpg_register_rules action. It gets a settings row, a checklist row and enforcement automatically. Developer documentation is in README.md inside the plugin folder.
The readiness column adds two database queries for an entire page of products, regardless of the page size.
sit_wcpg_register_rules, sit_wcpg_validation_result, sit_wcpg_should_enforce and sit_wcpg_can_override_publish_guard.