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_update_term_datawp_update_comment_datawp_insert_term_datapre_get_avatar_datawidget_update_callback
相關方法
wp_get_update_datawp_get_update_php_annotationwp_get_update_https_urlwp_get_pomo_file_datawp_get_update_php_urlwp_get_post_tags
引入
3.5.0
棄用
-

wp_get_update_data:此函式用於檢索有關 WordPress 核心、外掛或主題的可用更新的資訊。資訊以陣列形式返回,可用於向使用者顯示更新資訊。

過濾返回的外掛、主題和WordPress核心的更新資料陣列。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
return apply_filters( 'wp_get_update_data', $update_data, $titles );
return apply_filters( 'wp_get_update_data', $update_data, $titles );
return apply_filters( 'wp_get_update_data', $update_data, $titles );

常見問題

FAQs
檢視更多 >