update_plugin_complete_actions

過濾鉤子
apply_filters( 'update_plugin_complete_actions', $update_actions, $this->plugin )
引數
  • (string[]) $update_actions Array of plugin action links.
    Required:
  • (string) $plugin Path to the plugin file relative to the plugins directory.
    Required:
定義位置
相關勾子
update_bulk_plugins_complete_actionsinstall_plugin_complete_actionsupdate_theme_complete_actionsupdate_bulk_theme_complete_actionsupdate_translations_complete_actions
相關方法
update_site_optionupdate_comment_cachewp_update_pluginsupdate_optionupdate_network_optionwp_plugin_update_rows
引入
2.7.0
棄用
-

update_plugin_complete_actions 是 WordPress 中的過濾器鉤子,它允許開發人員將自定義操作新增到外掛更新完成時執行的操作列表中。 此鉤子用於擴充套件 WordPress 外掛更新過程的功能,允許開發人員執行其他操作,例如日誌記錄、通知或自定義處理。

過濾單個外掛更新後可用的動作連結列表。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$update_actions = apply_filters( 'update_plugin_complete_actions', $update_actions, $this->plugin );
$update_actions = apply_filters( 'update_plugin_complete_actions', $update_actions, $this->plugin );
$update_actions = apply_filters( 'update_plugin_complete_actions', $update_actions, $this->plugin );

常見問題

FAQs
檢視更多 >