WP HOOKS
akcjaod 3.6.0

upgrader_process_complete

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

Opis — z kodu źródłowego

Fires when the upgrader process is complete.

See also {@see 'upgrader_package_options'}.

Parametry

ParametrTypOpis
$upgrader\WP_UpgraderWP_Upgrader instance. In other contexts this might be a Theme_Upgrader, Plugin_Upgrader, Core_Upgrade, or Language_Pack_Upgrader instance.
$hook_extraarray{ Array of bulk item update data. @type string $action Type of action. Default 'update'. @type string $type Type of update process. Accepts 'plugin', 'theme', 'translation', or 'core'. @type bool $bulk Whether the update process is a bulk update. Default true. @type array $plugins Array of the basename paths of the plugins' main files. @type array $themes The theme slugs. @type array $translations { Array of translations update data. @type string $language The locale the translation is for. @type string $type Type of translation. Accepts 'plugin', 'theme', or 'core'. @type string $slug Text domain the translation is for. The slug of a theme/plugin or 'default' for core translations. @type string $version The version of a theme, plugin, or core. } }

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'upgrader_process_complete', 'twoja_funkcja', 10, 2 );

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

Popularne w tej kategorii