woocommerce/plugins/woocommerce-blocks/bin/hook-docs/format-hook-doc
Mike Jolley 7cb46eb092 Prevent duplicate hooks in hook docs (https://github.com/woocommerce/woocommerce-blocks/pull/5472)
* Update wp-hooks-generator

* Update inline hook documentation into consistent format

1. Hook docs for the same hook should be identical
2. Prefix with `Hook: ` so the case of the hook is not changed.
3. Use `@see` instead of `@hooked`. Hooked is not a standard PHP Doc tag.

cc @Aljullu

* Update hook doc script to support duplicate hooks across files

* Remove unused variables in function

Co-authored-by: Thomas Roberts <thomas.roberts@automattic.com>
2022-01-04 14:12:08 +00:00
..
example.js Add hook documentation and build script (https://github.com/woocommerce/woocommerce-blocks/pull/4927) 2021-10-13 10:45:59 +01:00
exceptions.js Add hook documentation and build script (https://github.com/woocommerce/woocommerce-blocks/pull/4927) 2021-10-13 10:45:59 +01:00
files.js Prevent duplicate hooks in hook docs (https://github.com/woocommerce/woocommerce-blocks/pull/5472) 2022-01-04 14:12:08 +00:00
index.js Prevent duplicate hooks in hook docs (https://github.com/woocommerce/woocommerce-blocks/pull/5472) 2022-01-04 14:12:08 +00:00
params.js Add hook documentation and build script (https://github.com/woocommerce/woocommerce-blocks/pull/4927) 2021-10-13 10:45:59 +01:00
related.js Prevent duplicate hooks in hook docs (https://github.com/woocommerce/woocommerce-blocks/pull/5472) 2022-01-04 14:12:08 +00:00
returns.js Add hook documentation and build script (https://github.com/woocommerce/woocommerce-blocks/pull/4927) 2021-10-13 10:45:59 +01:00