deprecated_argument_run

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

Paramètres

Entrée :
$function_name, $message, $version
Sortie :
@param string $function_name The function that was called.
@param string $message       A message regarding the change.
@param string $version       The version of WordPress that deprecated the argument used.

Utilisation

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

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

Actualités

Chargement des actualités...