[wp-trac] [WordPress Trac] #50531: Standardise the terminology used for hooks, actions, and filters in documentation
WordPress Trac
noreply at wordpress.org
Fri Oct 16 21:52:51 UTC 2020
#50531: Standardise the terminology used for hooks, actions, and filters in
documentation
----------------------------------------+---------------------
Reporter: johnbillion | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 5.6
Component: Plugins | Version:
Severity: normal | Resolution:
Keywords: has-patch php8 2nd-opinion | Focuses: docs
----------------------------------------+---------------------
Comment (by jrf):
@johnbillion I've looked through the patch. While I agree with the
principle of improving the consistency of the parameter names, I find the
current proposal even more confusing.
To me a "filter" or "action" refers to the ''hook name'', not to the
callback function hooked into that hook.
What about calling things by what they are ? `$tag` becomes `$hook_name`
and the callback function hooked into it becomes `$callback` or
`$callback_function`.
What do think ?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50531#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list