update-custom_{$action}

ACTION wp-admin\update.php (ligne 370) github
Fires when a custom plugin or theme update request is received. The dynamic portion of the hook name, `$action`, refers to the action provided in the request for wp-admin/update.php. Can be used to provide custom update functionality for themes and plugins.

Paramètres

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

Utilisation

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

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

Actualités

Chargement des actualités...