upgrader_post_install
Filter HookDescription
Filters the installation response after the installation has finished.Hook Information
File Location |
wp-admin/includes/class-wp-upgrader.php
View on GitHub
|
Hook Type | Filter |
Line Number | 730 |
Hook Parameters
Type | Name | Description |
---|---|---|
bool
|
$response
|
Installation response. |
array
|
$hook_extra
|
Extra arguments passed to hooked filters. |
array
|
$result
|
Installation result data. |
Usage Examples
Basic Usage
<?php
// Hook into upgrader_post_install
add_filter('upgrader_post_install', 'my_custom_filter', 10, 3);
function my_custom_filter($response, $hook_extra, $result) {
// Your custom filtering logic here
return $response;
}
Source Code Context
wp-admin/includes/class-wp-upgrader.php:730
- How this hook is used in WordPress core
<?php
725 *
726 * @param bool $response Installation response.
727 * @param array $hook_extra Extra arguments passed to hooked filters.
728 * @param array $result Installation result data.
729 */
730 $res = apply_filters( 'upgrader_post_install', true, $args['hook_extra'], $this->result );
731
732 if ( is_wp_error( $res ) ) {
733 $this->result = $res;
734 return $res;
735 }
PHP Documentation
<?php
/**
* Filters the installation response after the installation has finished.
*
* @since 2.8.0
*
* @param bool $response Installation response.
* @param array $hook_extra Extra arguments passed to hooked filters.
* @param array $result Installation result data.
*/
Quick Info
- Hook Type: Filter
- Parameters: 3
- File: wp-admin/includes/class-wp-upgrader.php
Related Hooks
Related hooks will be displayed here in future updates.