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

In this article

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

VersionDescription
4.4.0The $hook_extra parameter became available.
2.8.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.