wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



upgrader_pre_download › Filtr WordPress Hooks

Od5.5.0
Przestarzałyn/a
› apply_filters( 'upgrader_pre_download', false, $package, $this, $hook_extra )
Parametry: (4)
  • () reply Whether to short-circuit the download, the path to the downloaded package, or a WP_Error object. Default false.
    Wymagane: Tak
  • () package The package URI. May be a remote URL or local file path.
    Wymagane: Tak
  • () upgrader The WP_Upgrader instance.
    Wymagane: Tak
  • () hook_extra Extra arguments passed to hooked filters.
    Wymagane: Tak
Zdefiniowane na:
Codex:

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.




Źródło

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