[wp-trac] [WordPress Trac] #50531: Standardise the terminology used for hooks, actions, and filters in documentation

WordPress Trac noreply at wordpress.org
Tue May 4 10:46:40 UTC 2021


#50531: Standardise the terminology used for hooks, actions, and filters in
documentation
----------------------------+-----------------------------
 Reporter:  johnbillion     |       Owner:  SergeyBiryukov
     Type:  task (blessed)  |      Status:  closed
 Priority:  normal          |   Milestone:  5.8
Component:  Plugins         |     Version:
 Severity:  normal          |  Resolution:  fixed
 Keywords:  has-patch php8  |     Focuses:  docs
----------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"50807" 50807]:
 {{{
 #!CommitTicketReference repository="" revision="50807"
 Plugins: Standardize the terminology used for actions, filters, and
 callback functions.

 Use `$hook_name` when referring to a filter or action hook name, and
 `$callback` when referring to a callback function.

 This brings more consistency to parameter names in Plugin API functions.

 Includes minor code layout fixes for better readability and reordering
 some functions in a more logical order.

 Props johnbillion, jrf, SergeyBiryukov.
 Fixes #50531.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50531#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list