wp_get_update_data

过滤钩子


apply_filters( 'wp_get_update_data', $update_data, $titles )
参数
  • (array)
    $update_data
    {
    Fetched update data.

    @type array $counts An array of counts for available plugin, theme, and WordPress updates.
    @type string $update_title Titles of available updates.
    }

    Required:
  • (array)
    $titles
    An array of update counts and UI strings for available updates.
    Required:
定义位置
  • wp-includes/update.php
    , line 976
引入
3.5.0
弃用

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

return apply_filters( 'wp_get_update_data', $update_data, $titles );