update-core-custom_{$action}

ACTION wp-admin\update-core.php (ligne 1331) github
Fires for each custom update action on the WordPress Updates screen. The dynamic portion of the hook name, `$action`, refers to the passed update action. The hook fires in lieu of all available default update actions.

Paramètres

Entrée :
N/A
Sortie :
N/A

Utilisation

// Ajouter une fonction au hook action 'update-core-custom_{$action}'
add_action('update-core-custom_{$action}', 'ma_fonction_personnalisee', 10, 1);

function ma_fonction_personnalisee() {
    // Votre code ici
    error_log('Hook update-core-custom_{$action} déclenché');
}

Actualités

Chargement des actualités...