Uma área de pesquisa sobre o WordPress para devs e autores do tema



upgrader_pre_install ›

Desde2.8.0
Obsoleton/a
apply_filters( 'upgrader_pre_install', true, $args['hook_extra'] )
Parâmetros: (2)
  • (bool|WP_Error) $response Response.
    Required: Yes
  • (array) $hook_extra Extra arguments passed to hooked filters.
    Required: Yes
Definido em:
Codex:

Filters the install response before the installation has started.

Returning a truthy value, or one that could be evaluated as a WP_Error will effectively short-circuit the installation, returning that value instead.





Fonte

$res = apply_filters( 'upgrader_pre_install', true, $args['hook_extra'] );