update_theme_complete_actions
Filters the list of action links available following a single theme update.
Использование
add_filter( 'update_theme_complete_actions', 'wp_kama_update_theme_complete_actions_filter', 10, 2 ); /** * Function for `update_theme_complete_actions` filter-hook. * * @param string[] $update_actions Array of theme action links. * @param string $theme Theme directory name. * * @return string[] */ function wp_kama_update_theme_complete_actions_filter( $update_actions, $theme ){ // filter... return $update_actions; }
- $update_actions(string[])
- Array of theme action links.
- $theme(строка)
- Theme directory name.
Список изменений
С версии 2.8.0 | Введена. |
Где вызывается хук
update_theme_complete_actions
wp-admin/includes/class-theme-upgrader-skin.php 138
$update_actions = apply_filters( 'update_theme_complete_actions', $update_actions, $this->theme );