WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Купить персональные IPV4 и IPV6 прокси
фильтр не описан

upgrader_source_selection хук-фильтр . WP 2.8.0

Filters the source file location for the upgrade package.

Использование

add_filter( 'upgrader_source_selection', 'filter_function_name_7038', 10, 4 );
function filter_function_name_7038( $source, $remote_source, $this, $hook_extra ){
	// filter...

	return $source;
}
$source(строка)
File source location.
$remote_source(строка)
Remote file source location.
$this(WP_Upgrader)
WP_Upgrader instance.
$hook_extra(массив)
Extra arguments passed to hooked filters.

Список изменений

С версии 2.8.0 Введена.
С версии 4.4.0 The $hook_extra parameter became available.

Где вызывается хук

WP_Upgrader::install_package()
upgrader_source_selection
wp-admin/includes/class-wp-upgrader.php 519
$source = apply_filters( 'upgrader_source_selection', $source, $remote_source, $this, $args['hook_extra'] );

Где используется хук (в ядре WP)

wp-admin/includes/class-language-pack-upgrader.php 201
add_filter( 'upgrader_source_selection', array( $this, 'check_package' ), 10, 2 );
wp-admin/includes/class-language-pack-upgrader.php 302
remove_filter( 'upgrader_source_selection', array( $this, 'check_package' ) );
wp-admin/includes/class-plugin-upgrader.php 100
add_filter( 'upgrader_source_selection', array( $this, 'check_package' ) );
wp-admin/includes/class-plugin-upgrader.php 120
remove_filter( 'upgrader_source_selection', array( $this, 'check_package' ) );
wp-admin/includes/class-theme-upgrader.php 211
add_filter( 'upgrader_source_selection', array( $this, 'check_package' ) );
wp-admin/includes/class-theme-upgrader.php 232
remove_filter( 'upgrader_source_selection', array( $this, 'check_package' ) );