wp_get_update_data filter-hookWP 3.5.0

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

Usage

add_filter( 'wp_get_update_data', 'wp_kama_get_update_data_filter', 10, 2 );

/**
 * Function for `wp_get_update_data` filter-hook.
 * 
 * @param array $update_data Fetched update data.
 * @param array $titles      An array of update counts and UI strings for available updates.
 *
 * @return array
 */
function wp_kama_get_update_data_filter( $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_get_update_data
wp-includes/update.php 981
return apply_filters( 'wp_get_update_data', $update_data, $titles );

Where the hook is used in WordPress

Usage not found.