[wp-trac] [WordPress Trac] #37748: Dynamic Hooks Naming Convention

WordPress Trac noreply at wordpress.org
Sun Aug 21 00:42:21 UTC 2016


#37748: Dynamic Hooks Naming Convention
-------------------------+--------------------------------
 Reporter:  ramiy        |       Owner:
     Type:  enhancement  |      Status:  reopened
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  General      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:  docs, performance
-------------------------+--------------------------------
Changes (by DrewAPicture):

 * keywords:   => has-patch


Comment:

 [https://docs.google.com/spreadsheets/d/1QfHEPhI9j_Dts5XAxC_kX-
 LvdE0fxyHlnRFomOTFzQk/edit?usp=sharing Hook aliases spreadsheet] I started
 a year ago, for anyone interested.

 The spreadsheet is a little out of date for new hooks added in the last
 year, but the gist is to document ''common'' aliases of dynamic hooks
 right in the DocBlocks (and therefore in the Code Reference).

 So searching for `publish_post` in core would actually point you to
 `{$new_status}_{$post->post_type}` hook doc. If searching it on the Code
 Reference, you'd be taken to the
 [https://developer.wordpress.org/reference/hooks/new_status_post-
 post_type/ corresponding reference page].

 I should probably write a post on make/docs to get this started. No time
 like the present!

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


More information about the wp-trac mailing list