Skip to content

1.19.4 (1/5): Refresh CPT UI Pro promotion - #1053

Open
williamsba wants to merge 1 commit into
masterfrom
feature/1194-pro-promotions
Open

williamsba wants to merge 1 commit into
masterfrom
feature/1194-pro-promotions

Conversation

@williamsba

Copy link
Copy Markdown
Member

First of five stacked PRs for 1.19.4. Merge in order: this one → newsletter → About page → Help page → release.

What changes

Pro promotion shows what Pro does at the moment it's relevant, instead of generic banners. Nothing in the free plugin is locked or disabled.

  • Feature tour dialog: four tabs (Admin lists, Display, Client handoff, Multisite) with real screenshots and a 150 KB column builder video. Any data-cptui-pro-tour element opens it.
  • "Get Pro" menu item and comparison page (admin.php?page=cptui_upgrade), plus a "Get Pro" link on the Plugins screen.
  • Sidebar card on the add/edit screens, matched to the site: multisite → network registration; ACF or a post type with 50+ posts → admin columns; otherwise → display. The other Pro features show as icon rows. It replaces the static Pro hero ad, and the other WebDevStudios products move to the About page (PR 3).
  • Next-step notice after adding a post type or taxonomy.
  • "Columns & filters" button on CPT UI list screens, replacing the banner notice.
  • "Display on your site" link on Registered types (new cptui_listings_post_type_row_actions hook).
  • Dismissals now snooze for 90 days per user (cptui_pro_promo_snoozed_until user meta) instead of a global option reset on every update. The old options are cleaned up.
  • Gating: everything is hidden when CPT UI Pro or CPTUI Extended is active. cptui_show_pro_promos turns it all off.
  • Links: every Pro link goes through cptui_pro_url(), with consistent UTMs (utm_source = placement, utm_medium=plugin, utm_campaign=cptui).
  • Asset versioning: asset URLs include the build file's modification time (cptui_asset_version()), so browsers fetch rebuilt files.

All promo code lives in the new inc/pro.php. Functions that shipped in 1.19.1 keep their names, so remove_action() calls in Pro still work, including Pro's unhook of cptui_products_sidebar. Bundled media is 264 KB in images/pro/.

Testing

  • Run npm run build.
  • Without Pro: check the sidebar card, the tour from each trigger, Get Pro page, Plugins link, the post-save notice, the Columns & filters button, and Registered types.
  • Click "Not now", and confirm notices, the list button and the editor panel stay hidden.
  • Activate CPT UI Pro, then CPTUI Extended, and confirm every promo disappears. (Already checked with Pro locally.)

🤖 Generated with Claude Code

Show what Pro does at the moment it matters, instead of generic banners.

- Feature tour dialog with real screenshots and a column builder video.
- "Get Pro" menu item and comparison page, plus a Plugins screen link.
- Sidebar card matched to the site (multisite, ACF, busy post types) with
  the other Pro features as icon rows. It replaces the static Pro hero ad,
  and the other WebDevStudios products move to the About page.
- Next-step notice after adding a post type or taxonomy.
- Quiet "Columns & filters" button on CPT UI list screens instead of a banner.
- "Display on your site" link on the Registered types screen.
- Notices snooze for 90 days per user instead of resetting on every update.
- Everything is hidden when CPT UI Pro or CPTUI Extended is active, and
  cptui_show_pro_promos turns it all off.
- All Pro links go through cptui_pro_url() for consistent UTM tracking.
- Asset URLs include the build file's modification time so browsers pick up
  rebuilt scripts and styles.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant