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 Parameters


(string) File source location.


(string) Remote file source location.


(WP_Upgrader) WP_Upgrader instance.


(array) Extra arguments passed to hooked filters.

Top ↑

Source Source

File: wp-admin/includes/class-wp-upgrader.php

View on Trac

Top ↑

Changelog Changelog

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

Top ↑

User Contributed Notes User Contributed Notes

Top ↑

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