-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add category filter for the categories in the blocks #1528
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests well and good call moving the logic to a separate function, it's much better to read now!
Thanks @miguelpeixe! |
# [1.75.0-alpha.1](v1.74.0...v1.75.0-alpha.1) (2023-09-15) ### Features * add category filter for the categories in the blocks ([#1528](#1528)) ([ebbfce9](ebbfce9))
🎉 This PR is included in version 1.75.0-alpha.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
# [1.75.0](v1.74.2...v1.75.0) (2023-09-25) ### Features * add category filter for the categories in the blocks ([#1528](#1528)) ([ebbfce9](ebbfce9))
🎉 This PR is included in version 1.75.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
All Submissions:
Changes proposed in this Pull Request:
This PR adds the filter
newspack_block_categories
to the post category output used by the Homepage Posts and Carousel blocks, similar to thenewspack_theme_categories
filter used in the themes.This addresses a publisher specific request related to how one of our smaller plugins works on single posts but not Homepage Posts, but it could have some other uses!
See 1205368557216686-as-1205459019020490.
How to test the changes in this Pull Request:
npm run build
.newspack_blocks_categories
, or test this plugin with: 115-gh-automattic/newspack-custom-codeOther information: