upgrader_pre_install

FILTER wp-admin\includes\class-wp-upgrader.php (ligne 555) github
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.

Paramètres

Entrée :
true, $args['hook_extra']
Sortie :
@param bool|WP_Error $response   Installation response.
@param array         $hook_extra Extra arguments passed to hooked filters.

Utilisation

// 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;
}

Actualités

Chargement des actualités...