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 操作钩子,在安装插件或主题升级并写入目标目录后触发。 此钩子允许您在升级过程完成后执行其他操作或更新。

在安装完成后过滤安装响应。

$res = apply_filters( 'upgrader_post_install', true, $args['hook_extra'], $this->result );

常见问题

FAQs
查看更多 >