mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-03 20:24:26 +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:
@@ -84,8 +84,16 @@ if ( $tab ) {
|
||||
* Fires before each of the tabs are rendered on the Install Themes page.
|
||||
*
|
||||
* The dynamic portion of the hook name, `$tab`, refers to the current
|
||||
* theme installation tab. Possible values are 'dashboard', 'search', 'upload',
|
||||
* 'featured', 'new', or 'updated'.
|
||||
* theme installation tab.
|
||||
*
|
||||
* Possible hook names include:
|
||||
*
|
||||
* - `install_themes_pre_dashboard`
|
||||
* - `install_themes_pre_featured`
|
||||
* - `install_themes_pre_new`
|
||||
* - `install_themes_pre_search`
|
||||
* - `install_themes_pre_updated`
|
||||
* - `install_themes_pre_upload`
|
||||
*
|
||||
* @since 2.8.0
|
||||
*/
|
||||
@@ -251,8 +259,16 @@ if ( $tab ) {
|
||||
* Fires at the top of each of the tabs on the Install Themes page.
|
||||
*
|
||||
* The dynamic portion of the hook name, `$tab`, refers to the current
|
||||
* theme installation tab. Possible values are 'dashboard', 'search', 'upload',
|
||||
* 'featured', 'new', or 'updated'.
|
||||
* theme installation tab.
|
||||
*
|
||||
* Possible hook names include:
|
||||
*
|
||||
* - `install_themes_dashboard`
|
||||
* - `install_themes_featured`
|
||||
* - `install_themes_new`
|
||||
* - `install_themes_search`
|
||||
* - `install_themes_updated`
|
||||
* - `install_themes_upload`
|
||||
*
|
||||
* @since 2.8.0
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user