| 开发者 | jrobie23 |
|---|---|
| 更新时间 | 2026年10月31日 04:32 |
| PHP版本: | 8.0 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[woocommerce_checkout] shortcode and the newer Checkout block. The question is classic-only, for the reason given in the FAQ.
Built for WooCommerce
manage_woocommerce.apply_filters( 'mcwccn_order_meta_rows', $rows, $order )
$rows is an array of array( 'label' => string, 'value' => string ). Return the array modified, reordered, or emptied.
Notices do. They are placed above the Checkout block with the same targeting, scheduling and styling they use on the classic checkout, and no JavaScript is involved. The optional question is classic checkout only. The Checkout block submits through WooCommerce's Store API rather than a form post, so a field rendered alongside the block would appear, the customer would answer it, and the answer would never reach the order. Rather than lose an answer silently, a notice that asks a question is skipped on the block checkout. Message-only notices work on both.
On the order, in its own meta field. They show on the order edit screen and inside order emails under the Admin/Email Label you set, and are available to anything else that reads order meta.
It stops rendering. Individual options disappear on and after their own date, and once every dated option has passed the whole notice hides itself. Nothing needs to be switched off by hand.
Go to WooCommerce → MCW Checkout Notices and drag the handle in the Order column. Handles are shown while the list is sorted by Order, which is how it opens by default. If you have sorted by another column, click the Order column heading to get the handles back. You can still type a number into the Order field under Page Attributes on a notice's edit screen.
No. The font field sets the CSS font-family for the heading or question label, using a font your site already provides, whether from your theme, a font plugin or your own stylesheet. Enter the name followed by a fallback, for example "Open Sans", sans-serif, or a CSS variable such as var(--heading-font). Leave it blank to use the theme's font. Nothing is requested from Google or any other external server.
No, and that is deliberate. Publish controls whether the notice exists; Enabled controls whether it shows at checkout. A published notice with Enabled switched off stays hidden, which lets you keep a seasonal notice fully configured between seasons.
No. Uninstalling removes the notices and their settings. Answers already stored on orders are left alone, because they belong to the order record.