Skip to content

feat(woo): add WOOSaleBadge and WOOOutOfStockBadge editor components#2128

Open
golovencoserghei wants to merge 1 commit into
developfrom
feature/woo-archive-badges
Open

feat(woo): add WOOSaleBadge and WOOOutOfStockBadge editor components#2128
golovencoserghei wants to merge 1 commit into
developfrom
feature/woo-archive-badges

Conversation

@golovencoserghei
Copy link
Copy Markdown
Collaborator

  • Add WOOSaleBadge and WOOOutOfStockBadge components (EditorComponent subclasses) rendering dynamic placeholders for product archive sale/out-of-stock badges
  • Register both components in ElementTypes enum and index.wp.ts
  • Add shortcode definitions with icons and keywords for the Add Elements panel

- Add WOOSaleBadge and WOOOutOfStockBadge editor components with
  renderForEdit and renderForView methods
- HTML structure (container/span) rendered by editor components;
  PHP placeholders return plain text only
- Register components in ElementTypes enum and index.wp.ts
- Add shortcode definitions with icons and keywords for Add Elements panel
@golovencoserghei golovencoserghei force-pushed the feature/woo-archive-badges branch from e642293 to 78180e3 Compare May 25, 2026 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants