filtrod 3.5.0
wp_get_update_data
Opis — z kodu źródłowego
Filters the returned array of update data for plugins, themes, and WordPress core.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$update_data | array | { 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. } |
$titles | array | An 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
}
// 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