-
Notifications
You must be signed in to change notification settings - Fork 5
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
Snippet: How to filter the output of a Block Binding #345
Comments
This snippet is ready for an initial review: https://docs.google.com/document/d/1KbNMmvzwiF0BgfIpN7FiG6xG6UKP1f0X7h0oxCdgpcI/edit?usp=sharing Note that I'll create the demo video after the first review in case any changes are needed. |
Looks good. |
Thanks @justintadlock. I'll get the images/video put together today. |
I added the featured image and the video demo. The public preview is here: https://developer.wordpress.org/news/?p=4850&post_type=snippets&preview=1&_ppp=c3c9473f8d @ryanwelcher I know you have already taken a look, but would you mind doing the second review? Thanks! |
Second review done! |
The snippet has been published here: https://developer.wordpress.org/news/snippets/how-to-filter-the-output-of-a-block-binding/ Social copy:
|
Discussed in #341
Originally posted by ndiego November 18, 2024
This snippet would show developers how to use the
get_value_callback
property of theregister_block_bindings_source()
function and theblock_bindings_source_value
filter to modify the output of a Block Binding on the front end. This snippet will provide a solution for implementations like this:The text was updated successfully, but these errors were encountered: