install_theme_overwrite_actions

FILTER wp-admin\includes\class-theme-installer-skin.php (ligne 388) github
Filters the list of action links available following a single theme installation failure when overwriting is allowed.

Paramètres

Entrée :
$install_actions, $this->api, $new_theme_data
Sortie :
@param string[] $install_actions Array of theme action links.
@param object   $api             Object containing WordPress.org API theme data.
@param array    $new_theme_data  Array with uploaded theme data.

Utilisation

// Modifier la valeur avec le filtre 'install_theme_overwrite_actions'
add_filter('install_theme_overwrite_actions', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre($install_actions) {
    // Modifier la valeur
    return $install_actions;
}

Actualités

Chargement des actualités...