WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Авторские Темы для WordPress
фильтр не описан

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

Filters the installation response after the installation has finished.

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

add_filter( 'upgrader_post_install', 'filter_function_name_7845', 10, 3 );
function filter_function_name_7845( $response, $hook_extra, $result ){
	// filter...

	return $response;
}
$response(true|false)
Installation response.
$hook_extra(массив)
Extra arguments passed to hooked filters.
$result(массив)
Installation result data.

Список изменений

С версии 2.8.0 Введена.

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

WP_Upgrader::install_package()
upgrader_post_install
wp-admin/includes/class-wp-upgrader.php 624
$res = apply_filters( 'upgrader_post_install', true, $args['hook_extra'], $this->result );

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

wp-admin/includes/class-plugin-upgrader.php 214
add_filter( 'upgrader_post_install', array( $this, 'active_after' ), 10, 2 );
wp-admin/includes/class-plugin-upgrader.php 241
remove_filter( 'upgrader_post_install', array( $this, 'active_after' ) );
wp-admin/includes/class-theme-upgrader.php 241
add_filter( 'upgrader_post_install', array( $this, 'check_parent_theme_filter' ), 10, 3 );
wp-admin/includes/class-theme-upgrader.php 263
remove_filter( 'upgrader_post_install', array( $this, 'check_parent_theme_filter' ) );
wp-admin/includes/class-theme-upgrader.php 317
add_filter( 'upgrader_post_install', array( $this, 'current_after' ), 10, 2 );
wp-admin/includes/class-theme-upgrader.php 340
remove_filter( 'upgrader_post_install', array( $this, 'current_after' ) );
wp-admin/includes/class-theme-upgrader.php 389
add_filter( 'upgrader_post_install', array( $this, 'current_after' ), 10, 2 );
wp-admin/includes/class-theme-upgrader.php 482
remove_filter( 'upgrader_post_install', array( $this, 'current_after' ) );