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.
N/A
Sortie :
// 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é');
}
Chargement des actualités...