mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-07 22:24: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:
@@ -757,7 +757,8 @@ function _wp_handle_upload( &$file, $overrides, $time, $action ) {
|
||||
* Filters the data for a file before it is uploaded to WordPress.
|
||||
*
|
||||
* The dynamic portion of the hook name, `$action`, refers to the post action.
|
||||
* Possible filter names include:
|
||||
*
|
||||
* Possible hook names include:
|
||||
*
|
||||
* - `wp_handle_sideload_prefilter`
|
||||
* - `wp_handle_upload_prefilter`
|
||||
@@ -773,7 +774,8 @@ function _wp_handle_upload( &$file, $overrides, $time, $action ) {
|
||||
* Filters the override parameters for a file before it is uploaded to WordPress.
|
||||
*
|
||||
* The dynamic portion of the hook name, `$action`, refers to the post action.
|
||||
* Possible filter names include:
|
||||
*
|
||||
* Possible hook names include:
|
||||
*
|
||||
* - `wp_handle_sideload_overrides`
|
||||
* - `wp_handle_upload_overrides`
|
||||
|
||||
Reference in New Issue
Block a user