upgrader_install_package_result

过滤钩子
apply_filters( 'upgrader_install_package_result', $result, $options['hook_extra'] )
参数
  • (array|WP_Error) $result Result from WP_Upgrader::install_package().
    Required:
  • (array) $hook_extra Extra arguments passed to hooked filters.
    Required:
定义位置
相关勾子
upgrader_package_optionsupgrader_overwrote_packageupgrader_pre_installupgrader_post_installplugins_api_result
相关方法
wp_install_language_formwp_install_defaultswp_default_packagesget_all_page_idsget_admin_page_parentinstall_blog_defaults
引入
5.7.0
弃用
-

upgrader_install_package_result:这是一个 WordPress 操作钩子,在安装插件或主题升级后触发。 此钩子允许您在升级过程完成后执行其他操作或更新。

过滤WP_Upgrader::install_package()的结果。

$result = apply_filters( 'upgrader_install_package_result', $result, $options['hook_extra'] );

常见问题

FAQs
查看更多 >