Skip to content

Add code examples for actions/selectors in Data Module packages. #42125

Open

Description

What problem does this address?

Working with any of the data modules provided by WordPress can be very confusing. When looking at the Data Modules section in the handbook, there are almost no code examples for developers to use as reference.

I would love to see an example for each action or selector that is exposed for use.

Packages:

What is your proposed solution?

Add an @example tag to each docblock. This will be picked up by the documentation generator and added to the handbook.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions