plugins_api_result

过滤钩子


apply_filters( 'plugins_api_result', $res, $action, $args )
参数
  • (object|WP_Error)
    $res
    Response object or WP_Error.
    Required:
  • (string)
    $action
    The type of information being requested from the Plugin Installation API.
    Required:
  • (object)
    $args
    Plugin API arguments.
    Required:
定义位置
  • wp-admin/includes/plugin-install.php
    , line 234
引入
2.7.0
弃用

过滤插件安装API的响应结果。

return apply_filters( 'plugins_api_result', $res, $action, $args );