Skip to content

Subscriptions: use new plugin template registration API for subscription templates #39853

@simison

Description

@simison

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

There's now a new official API we can migrate to:

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementChanges to an existing feature — removing, adding, or changing parts of it[Block] Subscribe[Feature] SubscriptionsAll subscription-related things such as paid and unpaid, user management, and newsletter settings.[Pri] Normal
    No fields configured for Enhancement.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions