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

$source string
File source location.
$remote_source string
Remote file source location.
$upgrader WP_Upgrader
WP_Upgrader instance.
$hook_extra array
Extra arguments passed to hooked filters.

Top ↑

Source

File: wp-admin/includes/class-wp-upgrader.php. View all references

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


Top ↑

Changelog

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

Top ↑

User Contributed Notes

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