Skip to content
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

Use hookable-patterns with existing blocks & DOCS #949

Merged

Conversation

carstingaxion
Copy link
Collaborator

@carstingaxion carstingaxion commented Oct 14, 2024

After the introduction of hookable block-patterns with #888, this PR updates the post type registration to make use of the new patterns.

All blocks that were previously added to the template array, are now added using the Block Hooks API. This brings a lot of flexibility, which is minimal covered in an updated developer doc.

Description of the Change

Closes # Follow-up for: #888 (#628)

How to test the Change

I provided three examples in the updated /docs/developer/blocks/hookable-patterns, which can be used to test.

Changelog Entry

Changed - Use hookable-patterns with the existing blocks & update documentation

Credits

Props @carstingaxion

Checklist:

  • I agree to follow this project's Code of Conduct.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests pass.

Copy link

Preview changes with Playground

You can preview the recent changes for PR#949 with the following PHP versions:

PHP Version 8.3

PHP Version 7.4

Download .zip with build changes

Made with 💙 from GatherPress & a little bit of WordPress Playground. Changes will not persist between sessions.

@mauteri mauteri merged commit df8f92b into GatherPress:develop Oct 15, 2024
16 checks passed
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.

2 participants