Registering Block Bindings for Copyright #193
ashleyshaw
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Introduction:
Block bindings are a new feature in WordPress that allow for dynamic and flexible updates to block content. Currently, LSX Design does not fully implement block bindings. This discussion focuses on registering block binding sources and callback functions to improve flexibility, particularly for the copyright footer.
Problem/Opportunity:
At present, there are no registered block bindings for the copyright footer in LSX Design. This reduces the flexibility of the footer, limiting its ability to dynamically update based on content changes or settings.
Proposed Solution:
We recommend registering a block binding source for the copyright footer by implementing a callback function. This would allow the copyright block to be updated dynamically, offering more flexibility to users. The following code example demonstrates how this could be achieved:
Alternatives Considered:
Continuing without block bindings was considered, but this approach limits the dynamic capabilities of the LSX Design system, particularly as WordPress evolves toward more flexible block-based content.
Challenges:
Call for Feedback:
Has anyone implemented block bindings for similar use cases? I’d appreciate feedback on whether there are potential performance issues or edge cases to consider for this feature.
Next Steps:
If the community agrees with this approach, I will proceed by registering the block binding and conducting initial tests to confirm that the copyright block updates dynamically. Feedback on implementation will guide further refinements.
Beta Was this translation helpful? Give feedback.
All reactions