| 开发者 | motylanogha |
|---|---|
| 更新时间 | 2026年7月31日 17:44 |
| PHP版本: | 8.1 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[marks_badges] shortcode to place badges anywhere.[marks_badges] to drop a product's badges into any page, post or widget. With
no attributes it uses the current product (inside a loop or on a single product
page). Pass id to target a specific product and context (single or loop) to
pick the render style:
[marks_badges id="123" context="loop"]
/wp-content/plugins/marks, or install via Plugins → Add New.Yes.
On products created within the newness window (30 days by default).
On stock-managed products whose remaining quantity is at or below the configured low-stock threshold.
Set the manual badge label and colour on the Sale & Stock Badges settings screen, then set the
product meta _marks_manual_text (and optionally _marks_manual_style) on the
products that should display it.
Yes. This plugin is compatible with WordPress Multisite. Network activate it or activate it on individual sites; each site keeps its own settings and data.
_marks_manual_text to 1 on a product and it shows that label; type your own wording in the meta and that product uses it instead. Until now the label was saved and ignored, so a product flagged with 1 wore a badge that said "1".[marks_badges] shortcode for manual placement.