wp_get_update_data filter-hook . WP 3.5.0
Filters the returned array of update data for plugins, themes, and WordPress core.
Usage
add_filter( 'wp_get_update_data', 'filter_function_name_4705', 10, 2 ); function filter_function_name_4705( $update_data, $titles ){ // filter... return $update_data; }
- $update_data(array)
Fetched update data.
-
counts(array)
An array of counts for available plugin, theme, and WordPress updates. - update_title(string)
Titles of available updates.
-
- $titles(array)
- An array of update counts and UI strings for available updates.
Changelog
Since 3.5.0 | Introduced. |
Where the hook is called
wp_get_update_data
wp-includes/update.php 774
return apply_filters( 'wp_get_update_data', $update_data, $titles );