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:
定义位置
  • wp-admin/includes/class-wp-upgrader.php
    , line 827
引入
5.7.0
弃用

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

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