Skip to content

v1.2.1 — Fix My Account tab 404 + editable legal clauses

Choose a tag to compare

@mredodos mredodos released this 18 Jun 13:27
· 28 commits to main since this release
fa8bedb

Two fixes from a developer's support feedback (Antonio Costa). No DB schema change; PHP lint clean.

Fix — the WooCommerce "Right of withdrawal" My Account tab no longer 404s on a fresh install

The tab is a WooCommerce rewrite endpoint (/my-account/<slug>, default wwu-withdrawal), not a page. Its rewrite rule wasn't being persisted on activation (the flush ran before the endpoint was registered), so the tab returned a 404 until Permalinks were re-saved. The plugin now does a one-time rewrite flush on the first load after activation, so the tab works immediately.
If you already hit this: Settings → Permalinks → Save Changes also fixes it. No page needs to be created — the slug is an endpoint.

New — edit the legal clauses from the admin (no code)

A new Settings → Legal clauses section lets you replace the built-in pre-contractual / terms / privacy / exemption-consent clauses with your own wording (per language, with a "show the built-in default" toggle). Your text then appears on the Compliance page and wherever the [wwu_wb_info] shortcode is used, and the "sample text" note is dropped. Leave a field empty to keep the built-in template. Developers can also override programmatically with the new wwu_wb_clause_text filter.

Also

  • Compliance page shows a "customised" badge on overridden clauses + a pointer to the new section.
  • Hooks reference updated (33 → 34).

WordPress.org: the directory listing is still in manual review on the 1.1.x build; the latest version will follow via SVN once approved.

Full changelog: docs/changelog/wwu-wb-CHANGELOG.md