WP HOOKS
filtrod 4.3.0

upgrader_package_options

Args 1Plik wp-admin/includes/class-wp-upgrader.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the package options before running an update.

See also {@see 'upgrader_process_complete'}.

Parametry

ParametrTypOpis
$optionsarray{ Options used by the upgrader. @type string $package Package for update. @type string $destination Update location. @type bool $clear_destination Clear the destination resource. @type bool $clear_working Clear the working resource. @type bool $abort_if_destination_exists Abort if the Destination directory exists. @type bool $is_multi Whether the upgrader is running multiple times. @type array $hook_extra { Extra hook arguments. @type string $action Type of action. Default 'update'. @type string $type Type of update process. Accepts 'plugin', 'theme', or 'core'. @type bool $bulk Whether the update process is a bulk update. Default true. @type string $plugin Path to the plugin file relative to the plugins directory. @type string $theme The stylesheet or template name of the theme. @type string $language_update_type The language pack update type. Accepts 'plugin', 'theme', or 'core'. @type object $language_update The language pack update offer. } }

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'upgrader_package_options', 'twoja_funkcja' );

function twoja_funkcja($param_1) {
	// Twój kod
}

Popularne w tej kategorii