plugin_auto_update_setting_html

過濾鉤子
apply_filters( 'plugin_auto_update_setting_html', $html, $plugin_file, $plugin_data )
引數
  • (string) $html The HTML of the plugin's auto-update column content, including toggle auto-update action links and time to next update.
    Required:
  • (string) $plugin_file Path to the plugin file relative to the plugins directory.
    Required:
  • (array) $plugin_data An array of plugin data. See get_plugin_data() and the {@see 'plugin_row_meta'} filter for the list of possible values.
    Required:
定義位置
相關勾子
theme_auto_update_setting_htmlplugin_auto_update_debug_stringplugins_auto_update_enabledtheme_auto_update_setting_templateauto_plugin_update_send_email
相關方法
wp_theme_auto_update_setting_templatecore_auto_updates_settingswp_is_auto_update_forced_for_itemwp_plugin_update_rowsget_plugin_updateswp_get_auto_update_message
引入
5.5.0
棄用
-

plugin_auto_update_setting_html 是一個過濾鉤子,允許開發者在WordPress管理區的”外掛”螢幕上自定義自動更新設定的HTML輸出。這個鉤子可以用來改變自動更新設定的顯示方式,比如新增額外的資訊或者改變設定的佈局。

過濾外掛列表表中每個外掛的自動更新設定的HTML。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
echo apply_filters( 'plugin_auto_update_setting_html', $html, $plugin_file, $plugin_data );
echo apply_filters( 'plugin_auto_update_setting_html', $html, $plugin_file, $plugin_data );
echo apply_filters( 'plugin_auto_update_setting_html', $html, $plugin_file, $plugin_data );

常見問題

FAQs
檢視更多 >