Skip to content

Docs: Add new page for i18n filters#28553

Merged
gziolo merged 3 commits into
WordPress:masterfrom
leewillis77:add/i18n-filter-docs
Jan 29, 2021
Merged

Docs: Add new page for i18n filters#28553
gziolo merged 3 commits into
WordPress:masterfrom
leewillis77:add/i18n-filter-docs

Conversation

@leewillis77
Copy link
Copy Markdown
Contributor

Adds documentation for the filters added in #27966

@gziolo
Copy link
Copy Markdown
Member

gziolo commented Jan 28, 2021

Thank you for starting this PR ❤️

@gziolo gziolo requested review from JustinyAhin and koke January 29, 2021 08:41
@gziolo gziolo added [Type] Developer Documentation Documentation for developers [Feature] Extensibility The ability to extend blocks or the editing experience [Package] i18n /packages/i18n labels Jan 29, 2021
Comment thread docs/designers-developers/developers/filters/i18n-filters.md Outdated
@JustinyAhin
Copy link
Copy Markdown
Member

@leewillis77 the PR looks good to me. I've just added a small phrasing suggestion

Copy link
Copy Markdown
Member

@gziolo gziolo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I marked 3 places where some enhancements could be applied but overall it looks great 👍🏻


## Filter Arguments

The filters are passed the following arguments, in line with their PHP equivalents.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice to link with the corresponding PHP documentation page.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not aware of a single place we could link to that covers all of the relevant PHP filters (they each have their own page), so decided not to add links.

Comment thread docs/designers-developers/developers/filters/i18n-filters.md Outdated
Comment thread docs/designers-developers/developers/filters/i18n-filters.md Outdated
@gziolo gziolo changed the title Add docs for i18n filters Docs: Add new page for i18n filters Jan 29, 2021
@gziolo gziolo merged commit 4ef6b30 into WordPress:master Jan 29, 2021
@github-actions github-actions Bot added this to the Gutenberg 9.9 milestone Jan 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Feature] Extensibility The ability to extend blocks or the editing experience [Package] i18n /packages/i18n [Type] Developer Documentation Documentation for developers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants