deprecated_constructor_trigger_error

FILTER wp-includes\functions.php (ligne 5643) github
Filters whether to trigger an error for deprecated functions. `WP_DEBUG` must be true in addition to the filter evaluating to true. @since 4.3.0 @param bool $trigger Whether to trigger the error for deprecated functions. Default true.

Paramètres

Entrée :
true
Sortie :
@param bool $trigger Whether to trigger the error for deprecated functions. Default true.

Utilisation

// Modifier la valeur avec le filtre 'deprecated_constructor_trigger_error'
add_filter('deprecated_constructor_trigger_error', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre(true) {
    // Modifier la valeur
    return true;
}

Actualités

Chargement des actualités...