хук-фильтр since 4.3.0

upgrader_package_options

Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.

Сигнатура

apply_filters( 'upgrader_package_options', array $options )

Описание

См. также «upgrader_process_complete».

Оригинал (английский)

Фильтруемое значение

Options used by the upgrader.
  • package stringPackage for update.
  • destination stringUpdate location.
  • clear_destination boolClear the destination resource.
  • clear_working boolClear the working resource.
  • abort_if_destination_exists boolAbort if the Destination directory exists.
  • is_multi boolWhether the upgrader is running multiple times.
  • hook_extra array Extra hook arguments.
    • action stringType of action. Default 'update'.
    • type stringType of update process. Accepts 'plugin', 'theme', or 'core'.
    • bulk boolWhether the update process is a bulk update. Default true.
    • plugin stringPath to the plugin file relative to the plugins directory.
    • theme stringThe stylesheet or template name of the theme.
    • language_update_type stringThe language pack update type. Accepts 'plugin', 'theme', or 'core'.
    • language_update objectThe language pack update offer.
    Source
    $options = apply_filters( 'upgrader_package_options', $options );
    

    View all references View on Trac View on GitHub

    Related
    Used byDescription
    WP_Upgrader::run()wp-admin/includes/class-wp-upgrader.php

    Runs an upgrade/installation.

    Changelog
    VersionDescription
    4.3.0Introduced.

Параметры

$options array обязательный
Options used by the upgrader.
  • package stringPackage for update.
  • destination stringUpdate location.
  • clear_destination boolClear the destination resource.
  • clear_working boolClear the working resource.
  • abort_if_destination_exists boolAbort if the Destination directory exists.
  • is_multi boolWhether the upgrader is running multiple times.
  • hook_extra array Extra hook arguments.
    • action stringType of action. Default 'update'.
    • type stringType of update process. Accepts 'plugin', 'theme', or 'core'.
    • bulk boolWhether the update process is a bulk update. Default true.
    • plugin stringPath to the plugin file relative to the plugins directory.
    • theme stringThe stylesheet or template name of the theme.
    • language_update_type stringThe language pack update type. Accepts 'plugin', 'theme', or 'core'.
    • language_update objectThe language pack update offer.
    Source
    $options = apply_filters( 'upgrader_package_options', $options );
    

    View all references View on Trac View on GitHub

    Related
    Used byDescription
    WP_Upgrader::run()wp-admin/includes/class-wp-upgrader.php

    Runs an upgrade/installation.

    Changelog
    VersionDescription
    4.3.0Introduced.

Исходный код

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

$options = apply_filters( 'upgrader_package_options', $options );

История изменений

ВерсияОписание
4.3.0 Introduced.

Что будем искать? Например,Продвижение

Этот сайт использует куки-файлы. Оставаясь на сайте, Вы соглашаетесь на их использование. Для получения дополнительной информации, пожалуйста, ознакомьтесь с политикой в отношении персональных данных.