WP HOOKS
filtrod 5.2.0

is_protected_endpoint

Args 1Plik wp-includes/load.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters whether the current request is against a protected endpoint.

This filter is only fired when an endpoint is requested which is not already protected by WordPress core. As such, it exclusively allows providing further protected endpoints in addition to the admin backend, login pages and protected Ajax actions.

Parametry

ParametrTypOpis
$is_protected_endpointboolWhether the currently requested endpoint is protected. Default false.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'is_protected_endpoint', 'twoja_funkcja' );

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

Popularne w tej kategorii