filtrod 6.4.0
pre_wp_get_https_detection_errors
Opis — z kodu źródłowego
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.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$pre | null | \WP_Error | Error object to short-circuit detection, or null to continue with the default behavior. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'pre_wp_get_https_detection_errors', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'pre_wp_get_https_detection_errors', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii