| 开发者 | jakubkasparek |
|---|---|
| 更新时间 | 2026年5月29日 16:23 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[pcwb_withdrawal_form] for non-logged-in customers (order number + billing email lookup, rate-limited)templates/withdrawal-form.php or templates/guest-lookup.php into your theme to customizepcwb_eligible_statuses — array of statuses where the button is shownpcwb_period_days — cooling-off period overridepcwb_period_reference_date ($date, $order) — override the cooling-off reference datepcwb_new_status — order status applied after submissionpcwb_admin_recipient — admin email recipient overridepcwb_after_submit ($order, $reason, $account, $source) — fires after a successful submission (source = customer|guest|admin)pcwb_after_resolve ($order, $resolved_by_user_id) — fires when an admin marks a withdrawal resolved/wp-content/plugins/, or install via Plugins → Add New.In the customer's My Account → Orders → individual order detail page, below the order table. It only appears when the order matches an eligible status and is within the configured cooling-off period.
No. Once a withdrawal is submitted, the button is replaced with a notice showing the submission date and a contact email.
No. The plugin records the customer's intent to withdraw — it does not move money. Refunds are processed manually (or via your payment gateway) after the goods are received. The plugin notifies the admin via email so the merchant can follow up.
No. The button requires the customer to be logged in (their account must be linked to the order). This matches the typical "logged-in My Account" flow.
Go to WooCommerce → Settings → Emails, then select either "Withdrawal confirmation (customer)" or "Withdrawal notification (admin)". You can edit subject, heading, and additional content. For deeper customization, copy template files from templates/emails/ into your theme.
The plugin only stores data the customer has explicitly submitted (reason, refund bank account) as order metadata, alongside the existing order record. It does not transmit data to third parties.
pcwb_custom_css option. WordPress.org guidelines do not allow plugins to accept arbitrary CSS input; the bundled stylesheet remains, and themes can override styles in their own files.sanitize_callback for pcwb_guest_enabled with a named class method.phpcs:ignore comments.$completed variable to $pcwb_completed in admin email templates.Requires Plugins: woocommerce header to declare WooCommerce as a required dependency (WP 6.5+).[pcwb_withdrawal_form] shortcode for non-logged-in customers (order number + email lookup with rate limiting, short-lived submission token).pcwb_period_reference_date to override the reference date programmatically.pcwb_after_resolve ($order, $resolved_by) fires when a withdrawal is marked resolved.PCWB_Frontend::do_submit() and ::resolve() are now reusable across customer, guest and admin flows.pcwb_button_positions to register additional hooks.esc_url_raw with esc_url for displayed URL in plain text admin notification.pcwb_ / PCWB_ for collision safety.