Fires when a deprecated constructor is called.
$class_name, $version, $parent_class
Sortie :
@param string $class_name The class containing the deprecated constructor. @param string $version The version of WordPress that deprecated the function. @param string $parent_class The parent class calling the deprecated constructor.
// Ajouter une fonction au hook action 'deprecated_constructor_run'
add_action('deprecated_constructor_run', 'ma_fonction_personnalisee', 10, 1);
function ma_fonction_personnalisee($class_name, $version, $parent_class) {
// Votre code ici
error_log('Hook deprecated_constructor_run déclenché');
}
Chargement des actualités...