Filters the installation response before the installation has started. Returning a value that could be evaluated as a `WP_Error` will effectively short-circuit the installation, returning that value instead.
true, $args['hook_extra']
Sortie :
@param bool|WP_Error $response Installation response. @param array $hook_extra Extra arguments passed to hooked filters.
// Modifier la valeur avec le filtre 'upgrader_pre_install'
add_filter('upgrader_pre_install', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(true) {
// Modifier la valeur
return true;
}
Chargement des actualités...