install_themes_nonmenu_tabs
Filters tabs not associated with a menu item on the Install Themes screen.
Использование
add_filter( 'install_themes_nonmenu_tabs', 'wp_kama_install_themes_nonmenu_tabs_filter' ); /** * Function for `install_themes_nonmenu_tabs` filter-hook. * * @param string[] $nonmenu_tabs The tabs that don't have a menu item on the Install Themes screen. * * @return string[] */ function wp_kama_install_themes_nonmenu_tabs_filter( $nonmenu_tabs ){ // filter... return $nonmenu_tabs; }
- $nonmenu_tabs(string[])
- The tabs that don't have a menu item on the Install Themes screen.
Список изменений
С версии 2.8.0 | Введена. |
Где вызывается хук
install_themes_nonmenu_tabs
wp-admin/includes/class-wp-theme-install-list-table.php 82
$nonmenu_tabs = apply_filters( 'install_themes_nonmenu_tabs', $nonmenu_tabs );