W3cubDocs

/WordPress

apply_filters( ‘upgrader_source_selection’, string $source, string $remote_source, WP_Upgrader $upgrader, array $hook_extra )

Filters the source file location for the upgrade package.

Parameters

$sourcestring
File source location.
$remote_sourcestring
Remote file source location.
$upgraderWP_Upgrader
WP_Upgrader instance.
$hook_extraarray
Extra arguments passed to hooked filters.

Source

$source = apply_filters( 'upgrader_source_selection', $source, $remote_source, $this, $args['hook_extra'] );

Changelog

Version Description
4.4.0 The $hook_extra parameter became available.
2.8.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/upgrader_source_selection