Skip to content

Conversation

@GaryJones
Copy link
Collaborator

Summary

  • Add a WordPress Playground blueprint that enables the "Live Preview" feature on wordpress.org
  • The blueprint demonstrates Ad Code Manager's conditional targeting system with pre-configured demo content
  • Users land on the Settings → Ad Code Manager admin page to immediately explore the plugin's capabilities

What the blueprint creates

Sample content:

  • Three categories: Technology, Sports, Business
  • Four posts distributed across those categories

Demo ad codes showcasing conditional targeting:

Ad Code Zone Conditionals Purpose
Site-wide Leaderboard leaderboard None Default/fallback ad
Homepage Banner homepage-banner is_home Homepage targeting
Article Sidebar article-sidebar is_single Single post targeting
Sports Section Ad sports-zone has_category('sports') Category-specific
Premium Business Ad premium-zone is_single AND has_category('business') Multiple conditionals

Test plan

  • Test the blueprint in WordPress Playground Builder by pasting the JSON
  • Verify all 5 ad codes appear in the admin table
  • Verify conditionals display correctly
  • Confirm the "Add New" form works

Related

Inspired by Automattic/edit-flow#885

🤖 Generated with Claude Code

Enable the "Live Preview" feature on wordpress.org by adding a blueprint
that demonstrates Ad Code Manager's conditional targeting system.

The blueprint creates:
- Sample categories (Technology, Sports, Business) and posts
- Five ad codes showcasing different conditional configurations:
  - Site-wide leaderboard (no conditionals)
  - Homepage-only banner (is_home)
  - Article sidebar (is_single)
  - Sports section ad (has_category)
  - Premium business ad (is_single AND has_category)

Users land on the Settings → Ad Code Manager page to immediately see
the admin interface with pre-configured demo content.

Inspired by: Automattic/edit-flow#885

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@GaryJones GaryJones requested a review from a team as a code owner January 12, 2026 07:53
@GaryJones GaryJones self-assigned this Jan 12, 2026
@GaryJones GaryJones added the type: enhancement New feature or request label Jan 12, 2026
@GaryJones GaryJones added this to the Next milestone Jan 12, 2026
@GaryJones GaryJones merged commit 8633aca into develop Jan 12, 2026
13 checks passed
@GaryJones GaryJones deleted the add/wordpress-playground-blueprint branch January 12, 2026 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants