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