Automattic / Automattic/jetpack

Subscriptions: use new plugin template registration API for subscription templates

Open
#39,853 1 comment 0 reactions 0 assignees View on GitHub
[Block] Subscribe [Feature] Subscriptions [Pri] Normal Enhancement
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

In Jetpack Newsletters, we use a bit complicated way (as there wasn't an API before) to register templates that people can use to modify subscription popups, overlays and such. Basically each of these "preview and edit" links opens a pre-defined template:

![Image](https://github.com/user-attachments/assets/79bc734e-55cd-4a33-9663-674be7bcd09d)

There's now a new official API we can migrate to:
- https://github.com/WordPress/gutenberg/pull/61577

This will ensure better compatibility and stability of the functionality going forward, as well better example within the codebase for others at a8c and the community how to do something like this.

We'll need to make sure that previously saved modifications are carried over to new system.

Contributor guide

Open the contributing guide

Research direction

Start by locating the Jetpack Newsletters code that registers the subscription popup and overlay templates, then compare its approach with Gutenberg PR 61577. Migrate the registration to the new API and verify that previously saved template modifications remain available in the new system.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
web-dev
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.