wp_get_update_data хук-фильтр . WP 3.5.0
Filters the returned array of update data for plugins, themes, and WordPress core.
Использование
add_filter( 'wp_get_update_data', 'filter_function_name_945', 10, 2 ); function filter_function_name_945( $update_data, $titles ){ // filter... return $update_data; }
- $update_data(массив)
Fetched update data.
-
counts(массив)
An array of counts for available plugin, theme, and WordPress updates. - update_title(строка)
Titles of available updates.
-
- $titles(массив)
- An array of update counts and UI strings for available updates.
Список изменений
С версии 3.5.0 | Введена. |
Где вызывается хук
wp_get_update_data
wp-includes/update.php 776
return apply_filters( 'wp_get_update_data', $update_data, $titles );