deprecated_function_run

ACTION wp-includes\functions.php (ligne 5552) github
Fires when a deprecated function is called.

Paramètres

Entrée :
$function_name, $replacement, $version
Sortie :
@param string $function_name The function that was called.
@param string $replacement   The function that should have been called.
@param string $version       The version of WordPress that deprecated the function.

Utilisation

// Ajouter une fonction au hook action 'deprecated_function_run'
add_action('deprecated_function_run', 'ma_fonction_personnalisee', 10, 1);

function ma_fonction_personnalisee($function_name, $replacement, $version) {
    // Votre code ici
    error_log('Hook deprecated_function_run déclenché');
}

Actualités

Chargement des actualités...