plugin_auto_update_debug_string

過濾鉤子
apply_filters( 'plugin_auto_update_debug_string', $auto_updates_string, $plugin_path, $plugin, $enabled )
引數
  • (string) $auto_updates_string The string output for the auto-updates column.
    Required:
  • (string) $plugin_path The path to the plugin file.
    Required:
  • (array) $plugin An array of plugin data.
    Required:
  • (bool) $enabled Whether auto-updates are enabled for this item.
    Required:
定義位置
相關勾子
theme_auto_update_debug_stringplugin_auto_update_setting_htmlplugins_auto_update_enabledautomatic_updates_debug_emailtheme_auto_update_setting_html
相關方法
wp_get_auto_update_messagecore_auto_updates_settingswp_plugin_update_rowwp_plugin_update_rowswp_ajax_update_pluginget_plugin_updates
引入
5.5.0
棄用
-

plugin_auto_update_debug_string 是一個過濾鉤子,允許開發者在自動更新過程執行時向輸出的除錯資訊新增額外的資訊。這個鉤子可以用來提供關於自動更新過程的額外細節,比如正在更新的外掛版本。

掛鉤名稱的動態部分$plugin_file是指外掛檔案相對於外掛目錄的路徑。

過濾Site Health除錯資料中每個外掛的自動更新設定的文字字串。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$auto_updates_string = apply_filters( 'plugin_auto_update_debug_string', $auto_updates_string, $plugin_path, $plugin, $enabled );
$auto_updates_string = apply_filters( 'plugin_auto_update_debug_string', $auto_updates_string, $plugin_path, $plugin, $enabled );
$auto_updates_string = apply_filters( 'plugin_auto_update_debug_string', $auto_updates_string, $plugin_path, $plugin, $enabled );

常見問題

FAQs
檢視更多 >