WordPress at a glance
filter is not described

upgrader_post_install filter-hook . WP 2.8.0

Filters the installation response after the installation has finished.

Usage

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

	return $response;
}
$response(true/false)
Installation response.
$hook_extra(array)
Extra arguments passed to hooked filters.
$result(array)
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 );

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

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 326
add_filter( 'upgrader_post_install', array( $this, 'current_after' ), 10, 2 );
wp-admin/includes/class-theme-upgrader.php 349
remove_filter( 'upgrader_post_install', array( $this, 'current_after' ) );
wp-admin/includes/class-theme-upgrader.php 398
add_filter( 'upgrader_post_install', array( $this, 'current_after' ), 10, 2 );
wp-admin/includes/class-theme-upgrader.php 491
remove_filter( 'upgrader_post_install', array( $this, 'current_after' ) );