feat(access-control): filter the subscription lists available for signup#2053
feat(access-control): filter the subscription lists available for signup#2053
Conversation
There was a problem hiding this comment.
Pull request overview
Adds an extensibility hook to let other components (e.g., access control) filter which configured subscription lists are returned for the current ESP provider.
Changes:
- Capture the configured lists for the current provider into a variable.
- Introduce a new
newspack_newsletters_subscription_listsfilter applied to those lists before returning them.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Hey @dkoo, good job getting this PR merged! 🎉 Now, the Please check if this PR needs to be included in the "Upcoming Changes" and "Release Notes" doc. If it doesn't, simply remove the label. If it does, please add an entry to our shared document, with screenshots and testing instructions if applicable, then remove the label. Thank you! ❤️ |
# [3.31.0-alpha.1](v3.30.0...v3.31.0-alpha.1) (2026-04-02) ### Bug Fixes * **dependencies:** rebuild package-lock.json ([#2066](#2066)) ([6e82e00](6e82e00)) * **posts-inserter:** handle missing featured images; improve performance ([#1969](#1969)) ([cf5a47d](cf5a47d)) * update block support declaration ([#2060](#2060)) ([10a4468](10a4468)) * update removing block visibility ([#2056](#2056)) ([93d5e80](93d5e80)) ### Features * **access-control:** filter the subscription lists available to readers for signup ([#2053](#2053)) ([f8aea0b](f8aea0b))
|
🎉 This PR is included in version 3.31.0-alpha.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
# [3.31.0](v3.30.0...v3.31.0) (2026-04-13) ### Bug Fixes * **dependencies:** rebuild package-lock.json ([#2066](#2066)) ([6e82e00](6e82e00)) * **posts-inserter:** handle missing featured images; improve performance ([#1969](#1969)) ([cf5a47d](cf5a47d)) * update block support declaration ([#2060](#2060)) ([10a4468](10a4468)) * update removing block visibility ([#2056](#2056)) ([93d5e80](93d5e80)) ### Features * **access-control:** filter the subscription lists available to readers for signup ([#2053](#2053)) ([f8aea0b](f8aea0b))
|
🎉 This PR is included in version 3.31.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
All Submissions:
Changes proposed in this Pull Request:
Adds a filter callback for the available reader-facing subscription lists. Required for access control functionality in Automattic/newspack-plugin#4589.
How to test the changes in this Pull Request:
See Automattic/newspack-plugin#4589.
Other information: