upgrader_package_options
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
apply_filters( 'upgrader_package_options', array $options )
Описание
См. также «upgrader_process_complete».
Оригинал (английский)
See also ‘upgrader_process_complete’.
Фильтруемое значение
packagestringPackage for update.destinationstringUpdate location.clear_destinationboolClear the destination resource.clear_workingboolClear the working resource.abort_if_destination_existsboolAbort if the Destination directory exists.is_multiboolWhether the upgrader is running multiple times.hook_extraarray Extra hook arguments.actionstringType of action. Default'update'.typestringType of update process. Accepts'plugin','theme', or'core'.bulkboolWhether the update process is a bulk update. Default true.pluginstringPath to the plugin file relative to the plugins directory.themestringThe stylesheet or template name of the theme.language_update_typestringThe language pack update type. Accepts'plugin','theme', or'core'.language_updateobjectThe language pack update offer.
$options = apply_filters( 'upgrader_package_options', $options );View all references View on Trac View on GitHub
Related
ChangelogUsed by Description WP_Upgrader::run() wp-admin/includes/class-wp-upgrader.phpRuns an upgrade/installation.
Version Description 4.3.0 Introduced.
Параметры
$options
array
обязательный
packagestringPackage for update.destinationstringUpdate location.clear_destinationboolClear the destination resource.clear_workingboolClear the working resource.abort_if_destination_existsboolAbort if the Destination directory exists.is_multiboolWhether the upgrader is running multiple times.hook_extraarray Extra hook arguments.actionstringType of action. Default'update'.typestringType of update process. Accepts'plugin','theme', or'core'.bulkboolWhether the update process is a bulk update. Default true.pluginstringPath to the plugin file relative to the plugins directory.themestringThe stylesheet or template name of the theme.language_update_typestringThe language pack update type. Accepts'plugin','theme', or'core'.language_updateobjectThe language pack update offer.
$options = apply_filters( 'upgrader_package_options', $options );View all references View on Trac View on GitHub
Related
ChangelogUsed by Description WP_Upgrader::run() wp-admin/includes/class-wp-upgrader.phpRuns an upgrade/installation.
Version Description 4.3.0 Introduced.
Исходный код
wp-admin/includes/class-wp-upgrader.php:818
$options = apply_filters( 'upgrader_package_options', $options );
История изменений
| Версия | Описание |
|---|---|
| 4.3.0 | Introduced. |

