filtrod 5.6.0
application_password_is_api_request
Opis — z kodu źródłowego
Filters whether this is an API request that Application Passwords can be used on.
By default, Application Passwords is available for the REST API and XML-RPC.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$is_api_request | bool | If this is an acceptable API request. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'application_password_is_api_request', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'application_password_is_api_request', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii