WP HOOKS
filtrod 2.5.0

update_feedback

Args 1Plik wp-admin/includes/update-core.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters feedback messages displayed during the core update process.

The filter is first evaluated after the zip file for the latest version has been downloaded and unzipped. It is evaluated five more times during the process:

  1. Before WordPress begins the core upgrade process.
  2. Before Maintenance Mode is enabled.
  3. Before WordPress begins copying over the necessary files.
  4. Before Maintenance Mode is disabled.
  5. Before the database is upgraded.

Parametry

ParametrTypOpis
$feedbackstringThe core update feedback messages.

Wywołanie

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

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

Popularne w tej kategorii