wpseek.com
WordPress开发者和主题制作者的搜索引擎



upgrader_pre_download › WordPress过滤钩子

Since5.5.0
已弃用n/a
› apply_filters( 'upgrader_pre_download', false, $package, $this, $hook_extra )
参数: (4)
  • () reply Whether to short-circuit the download, the path to the downloaded package, or a WP_Error object. Default false.
    Required: Yes
  • () package The package URI. May be a remote URL or local file path.
    Required: Yes
  • () upgrader The WP_Upgrader instance.
    Required: Yes
  • () hook_extra Extra arguments passed to hooked filters.
    Required: Yes
定义在:
文档:

Filters whether to download a package for a WordPress core, plugin, theme, or translation upgrade.

Return a non-false value to short-circuit the download and return that value instead.




源码

$reply = apply_filters( 'upgrader_pre_download', false, $package, $this, $hook_extra );