pre_wp_get_https_detection_errors

FILTER wp-includes\https-detection.php (ligne 106) github
Short-circuits the process of detecting errors related to HTTPS support. Returning a `WP_Error` from the filter will effectively short-circuit the default logic of trying a remote request to the site over HTTPS, storing the errors array from the returned `WP_Error` instead.

Paramètres

Entrée :
null
Sortie :
@param null|WP_Error $pre Error object to short-circuit detection,

Utilisation

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

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

Actualités

Chargement des actualités...