Filters the source file location for the upgrade package.
$sourcestring$remote_sourcestring$upgraderWP_Upgrader$hook_extraarraywp-admin/includes/class-wp-upgrader.php:600WP_Upgrader::install_package() * * @param string $source File source location. * @param string $remote_source Remote file source location. * @param WP_Upgrader $upgrader WP_Upgrader instance. * @param array $hook_extra Extra arguments passed to hooked filters. */ $source = apply_filters( 'upgrader_source_selection', $source, $remote_source, $this, $args['hook_extra'] ); if ( is_wp_error( $source ) ) { return $source; } if ( ! empty( $args['hook_extra']['temp_backup'] ) ) {Introduced in 2.8.0. One change between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
$source retyped from string to string|WP_Error.verified against source