Plugin handbook: Misleading code snippets on "Custom Hooks" page #578
Labels
developer documentation (DevHub)
Improvements or additions to developer documentation
plugins
Issues for Plugin Developer Handbook
tracking issue
Use to track a series of related issues.
Issue Description
Some code snippet on https://developer.wordpress.org/plugins/hooks/custom-hooks/ are misleading.
Example of an misleading code snippet
URL of the Page with the Issue
Section of Page with the issue
Why is this a problem?
The code snippets contain irrelevant information such as
Foo:
,Bar:
andNew 1:
. A beginning WordPress developer might copy these parts into their plugin.Suggested Fix
Remove the irrelevant information from the corresponding code snippets.
The text was updated successfully, but these errors were encountered: