upgrader_post_install

過濾鉤子
apply_filters( 'upgrader_post_install', true, $args['hook_extra'], $this->result )
引數
  • (bool) $response Installation response.
    Required:
  • (array) $hook_extra Extra arguments passed to hooked filters.
    Required:
  • (array) $result Installation result data.
    Required:
定義位置
相關勾子
upgrader_pre_installpre_post_linkupgrader_install_package_resultupgrader_package_optionsupgrader_pre_download
相關方法
wp_not_installedupdate_post_metaget_post_statiget_post_timestampget_post_statesget_post_status
引入
2.8.0
棄用
-

upgrader_post_install:這是一個 WordPress 操作鉤子,在安裝外掛或主題升級並寫入目標目錄後觸發。 此鉤子允許您在升級過程完成後執行其他操作或更新。

在安裝完成後過濾安裝響應。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$res = apply_filters( 'upgrader_post_install', true, $args['hook_extra'], $this->result );
$res = apply_filters( 'upgrader_post_install', true, $args['hook_extra'], $this->result );
$res = apply_filters( 'upgrader_post_install', true, $args['hook_extra'], $this->result );

常見問題

FAQs
檢視更多 >