WP HOOKS
filtrod 6.4.0

pre_wp_get_https_detection_errors

Args 1Plik wp-includes/https-detection.phpDokumentacja WP ↗

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

ParametrTypOpis
$prenull | \WP_ErrorError 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
}

Popularne w tej kategorii