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. |
davy440
left a comment
There was a problem hiding this comment.
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 <61308756+akasunil@users.noreply.github.com>
thanks for fix Co-authored-by: Sunil Prajapati <61308756+akasunil@users.noreply.github.com>
thanks for fix Co-authored-by: Sunil Prajapati <61308756+akasunil@users.noreply.github.com>
thanks for fix Co-authored-by: Sunil Prajapati <61308756+akasunil@users.noreply.github.com>
thanks for fix Co-authored-by: Sunil Prajapati <61308756+akasunil@users.noreply.github.com>
|
@akasunil thanks for the above fixes. Didn't pay attention to the above mentioned errors earlier. |
Thanks for the suggestion. Not aware of the format since it's my first time. Co-authored-by: Sunil Prajapati <61308756+akasunil@users.noreply.github.com>
|
@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 <61308756+akasunil@users.noreply.github.com> * Update docs/reference-guides/filters/block-filters.md thanks for fix Co-authored-by: Sunil Prajapati <61308756+akasunil@users.noreply.github.com> * Update docs/reference-guides/filters/block-filters.md thanks for fix Co-authored-by: Sunil Prajapati <61308756+akasunil@users.noreply.github.com> * Update docs/reference-guides/filters/block-filters.md thanks for fix Co-authored-by: Sunil Prajapati <61308756+akasunil@users.noreply.github.com> * Update docs/reference-guides/filters/block-filters.md thanks for fix Co-authored-by: Sunil Prajapati <61308756+akasunil@users.noreply.github.com> * 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 <61308756+akasunil@users.noreply.github.com> --------- Co-authored-by: davy440 <indithemes@git.wordpress.org> Co-authored-by: akasunil <sunil25393@git.wordpress.org>
* 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 <61308756+akasunil@users.noreply.github.com> * Update docs/reference-guides/filters/block-filters.md thanks for fix Co-authored-by: Sunil Prajapati <61308756+akasunil@users.noreply.github.com> * Update docs/reference-guides/filters/block-filters.md thanks for fix Co-authored-by: Sunil Prajapati <61308756+akasunil@users.noreply.github.com> * Update docs/reference-guides/filters/block-filters.md thanks for fix Co-authored-by: Sunil Prajapati <61308756+akasunil@users.noreply.github.com> * Update docs/reference-guides/filters/block-filters.md thanks for fix Co-authored-by: Sunil Prajapati <61308756+akasunil@users.noreply.github.com> * 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 <61308756+akasunil@users.noreply.github.com> --------- Co-authored-by: davy440 <indithemes@git.wordpress.org> Co-authored-by: akasunil <sunil25393@git.wordpress.org>
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 <61308756+akasunil@users.noreply.github.com> * Update docs/reference-guides/filters/block-filters.md thanks for fix Co-authored-by: Sunil Prajapati <61308756+akasunil@users.noreply.github.com> * Update docs/reference-guides/filters/block-filters.md thanks for fix Co-authored-by: Sunil Prajapati <61308756+akasunil@users.noreply.github.com> * Update docs/reference-guides/filters/block-filters.md thanks for fix Co-authored-by: Sunil Prajapati <61308756+akasunil@users.noreply.github.com> * Update docs/reference-guides/filters/block-filters.md thanks for fix Co-authored-by: Sunil Prajapati <61308756+akasunil@users.noreply.github.com> * 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 <61308756+akasunil@users.noreply.github.com> --------- Co-authored-by: davy440 <indithemes@git.wordpress.org> Co-authored-by: akasunil <sunil25393@git.wordpress.org>
What?
Describing the
blocks.getBlockAttributesfilterWhy?
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