Wrapper for deprecated hook so we can apply some extra logic.
$hook, $replacement, $version, $message
Sortie :
@param string $hook The hook that was used. @param string $version The version of WordPress that deprecated the hook. @param string $replacement The hook that should have been used. @param string $message A message regarding the change.
// Ajouter une fonction au hook action 'deprecated_hook_run'
add_action('deprecated_hook_run', 'ma_fonction_personnalisee', 10, 1);
function ma_fonction_personnalisee($hook, $replacement, $version, $message) {
// Votre code ici
error_log('Hook deprecated_hook_run déclenché');
}
Chargement des actualités...