WP HOOKS
filtrod 3.5.0

wp_get_update_data

Args 2Plik wp-includes/update.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the returned array of update data for plugins, themes, and WordPress core.

Parametry

ParametrTypOpis
$update_dataarray{ Fetched update data. @type int[] $counts An array of counts for available plugin, theme, and WordPress updates. @type string $update_title Titles of available updates. }
$titlesarrayAn array of update counts and UI strings for available updates.

Wywołanie

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

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

Popularne w tej kategorii