update_theme_complete_actions хук-фильтрWP 2.8.0

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 Введена.

Где вызывается хук

Theme_Upgrader_Skin::after()
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 );

Где используется хук в WordPress

Использование не найдено.