upgrader_source_selection

Advertisement

Summery Summery

Filters the source file location for the upgrade package.

Syntax Syntax

apply_filters( 'upgrader_source_selection', string $source, string $remote_source, WP_Upgrader $this, array $hook_extra )

Parameters Parameters

$source

(string) File source location.

$remote_source

(string) Remote file source location.

$this

(WP_Upgrader) WP_Upgrader instance.

$hook_extra

(array) Extra arguments passed to hooked filters.

Source Source

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

Advertisement

Changelog Changelog

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

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.