-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Update block-filters.md #64959
Update block-filters.md #64959
Conversation
Added description for `blocks.getBlockAttributes` filter
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
👋 Thanks for your first Pull Request and for helping build the future of Gutenberg and WordPress, @davy440! In case you missed it, we'd love to have you join us in our Slack community. If you want to learn more about WordPress development in general, check out the Core Handbook full of helpful information. |
Thank you for your contribution! Is it possible for us to utilize the same simple example function something like other filters example in the same readme? I think this one is a little too technical; since the purpose of this is just to show how to apply the filter, a simple function would do the job. |
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.
Modified the example and provided additional info
Explained the parameters accepted by the filter callback function.
Fixed parameter names.
@akasunil Thanks for the feedback. I have modified the example and provided additional info regarding the filter. Thanks, |
Thanks @davy440 for the ping. I have left couple of suggestions. Hope to get it addressed. |
@akasunil Yes, I have provided a simpler example in my most recent commit. Is there something else I'm missing? |
Thanks Co-authored-by: Sunil Prajapati <[email protected]>
thanks for fix Co-authored-by: Sunil Prajapati <[email protected]>
thanks for fix Co-authored-by: Sunil Prajapati <[email protected]>
thanks for fix Co-authored-by: Sunil Prajapati <[email protected]>
thanks for fix Co-authored-by: Sunil Prajapati <[email protected]>
@akasunil thanks for the above fixes. Didn't pay attention to the above mentioned errors earlier. |
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.
Thank you @davy440, These looks really good. just one final thing to address and then we are ready to go.
Thanks for the suggestion. Not aware of the format since it's my first time. Co-authored-by: Sunil Prajapati <[email protected]>
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.
LGTM!
@akasunil Is there any update regarding the PR? Please let me know if anything is required from my end. Thank you, |
Hi @davy440 Can you sync the PR with trunk? |
@akasunil Just synced the fork with main branch. Showing 11 commits ahead of main branch. Let me know if anyhting else is required. Thanks |
* Update block-filters.md Added description for `blocks.getBlockAttributes` filter * Modified example and provided additional info * modified example and provided additional info Explained the parameters accepted by the filter callback function. * modified example and provided additional info Fixed parameter names. * Update docs/reference-guides/filters/block-filters.md Thanks Co-authored-by: Sunil Prajapati <[email protected]> * Update docs/reference-guides/filters/block-filters.md thanks for fix Co-authored-by: Sunil Prajapati <[email protected]> * Update docs/reference-guides/filters/block-filters.md thanks for fix Co-authored-by: Sunil Prajapati <[email protected]> * Update docs/reference-guides/filters/block-filters.md thanks for fix Co-authored-by: Sunil Prajapati <[email protected]> * Update docs/reference-guides/filters/block-filters.md thanks for fix Co-authored-by: Sunil Prajapati <[email protected]> * Update docs/reference-guides/filters/block-filters.md Thanks for the suggestion. Not aware of the format since it's my first time. Co-authored-by: Sunil Prajapati <[email protected]> --------- Co-authored-by: davy440 <[email protected]> Co-authored-by: akasunil <[email protected]>
* Update block-filters.md Added description for `blocks.getBlockAttributes` filter * Modified example and provided additional info * modified example and provided additional info Explained the parameters accepted by the filter callback function. * modified example and provided additional info Fixed parameter names. * Update docs/reference-guides/filters/block-filters.md Thanks Co-authored-by: Sunil Prajapati <[email protected]> * Update docs/reference-guides/filters/block-filters.md thanks for fix Co-authored-by: Sunil Prajapati <[email protected]> * Update docs/reference-guides/filters/block-filters.md thanks for fix Co-authored-by: Sunil Prajapati <[email protected]> * Update docs/reference-guides/filters/block-filters.md thanks for fix Co-authored-by: Sunil Prajapati <[email protected]> * Update docs/reference-guides/filters/block-filters.md thanks for fix Co-authored-by: Sunil Prajapati <[email protected]> * Update docs/reference-guides/filters/block-filters.md Thanks for the suggestion. Not aware of the format since it's my first time. Co-authored-by: Sunil Prajapati <[email protected]> --------- Co-authored-by: davy440 <[email protected]> Co-authored-by: akasunil <[email protected]>
This reverts commit 40eae5a.
* Update block-filters.md Added description for `blocks.getBlockAttributes` filter * Modified example and provided additional info * modified example and provided additional info Explained the parameters accepted by the filter callback function. * modified example and provided additional info Fixed parameter names. * Update docs/reference-guides/filters/block-filters.md Thanks Co-authored-by: Sunil Prajapati <[email protected]> * Update docs/reference-guides/filters/block-filters.md thanks for fix Co-authored-by: Sunil Prajapati <[email protected]> * Update docs/reference-guides/filters/block-filters.md thanks for fix Co-authored-by: Sunil Prajapati <[email protected]> * Update docs/reference-guides/filters/block-filters.md thanks for fix Co-authored-by: Sunil Prajapati <[email protected]> * Update docs/reference-guides/filters/block-filters.md thanks for fix Co-authored-by: Sunil Prajapati <[email protected]> * Update docs/reference-guides/filters/block-filters.md Thanks for the suggestion. Not aware of the format since it's my first time. Co-authored-by: Sunil Prajapati <[email protected]> --------- Co-authored-by: davy440 <[email protected]> Co-authored-by: akasunil <[email protected]>
What?
Describing the
blocks.getBlockAttributes
filterWhy?
The documentation needed updation regarding the filter. It could be helpful exploring further applications of the filter hook.
How?
Currently, there is no documentation for the filter hook.
Testing Instructions