Skip to content
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

Documentation #325

Open
carstingaxion opened this issue Nov 28, 2023 · 0 comments
Open

Documentation #325

carstingaxion opened this issue Nov 28, 2023 · 0 comments

Comments

@carstingaxion
Copy link

carstingaxion commented Nov 28, 2023

What to do, when there is no fmtr?

😁 Made me laugh some days ago.


Which standards to follow for inline comments and how do we generate the documentation (uses and developers)?

So, for sure, this plugin needs proper documentation for end-users and developers as well.

Because I would expect us to stay a small group of contributors, without a big budget for doing nice things over here, we should stay focused. That said, I think we should not start writing long essays, adding screenshots and so on, at least not now.

Instead we should focus on good, understandable inline code comments, well formatted to be parseable by any phpdoc library. Automated tests against the WordPress-Docs coding-standard should help writing those comments accordingly.

For the beginning, we should concentrate on action- and filter-hooks, over misc. functions and classes.

I added some code documentation to an un-documented, but existing filter and did some testing with wp-hookdoc, which is, for example, used for the Distributor dev-docs by 10up and looked nice to me.

Unfortunately, this was not possible, due to: 10up/actions-wordpress#42

The supposed alternative was this:

https://github.com/wp-hooks/generator

It seems like (from a quick view) it generates the hooks list from PHP and JS, both types of files, this one appears to be a better choice. It creates a JSON representation of the actions and filters used by WordPress in the code. It is compatible with WordPress core, themes, and plugins. Additionally offers code for using the PHP or JS files' generated hook files.

Let's give it a try!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant