WP HOOKS
filtrod 2.8.0

https_local_ssl_verify

Args 2Plik wp-includes/class-wp-http-streams.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters whether SSL should be verified for local HTTP API requests.

Parametry

ParametrTypOpis
$ssl_verifybool | stringBoolean to control whether to verify the SSL connection or path to an SSL certificate.
$urlstringThe request URL.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'https_local_ssl_verify', 'twoja_funkcja', 10, 2 );

function twoja_funkcja($param_1, $param_2) {
	// Twój kod
}