mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-07 14:14:36 +00:00
Docs: Add examples of possible names for various hooks whose name contains a dynamic portion.
This provides greater discoverability of such hooks in search results on the Code Reference site as well as increased clarity when reading the source. See #50734, #52628 git-svn-id: https://develop.svn.wordpress.org/trunk@50505 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1168,8 +1168,11 @@ function wp_edit_posts_query( $q = false ) {
|
||||
*
|
||||
* The dynamic portion of the hook name, `$post_type`, refers to the post type.
|
||||
*
|
||||
* Some examples of filter hooks generated here include: 'edit_attachment_per_page',
|
||||
* 'edit_post_per_page', 'edit_page_per_page', etc.
|
||||
* Possible hook names include:
|
||||
*
|
||||
* - `edit_post_per_page`
|
||||
* - `edit_page_per_page`
|
||||
* - `edit_attachment_per_page`
|
||||
*
|
||||
* @since 3.0.0
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user