filtrod 2.7.0
plugins_api_result
Opis — z kodu źródłowego
Filters the Plugin Installation API response results.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$res | object | \WP_Error | Response object or WP_Error. |
$action | string | The type of information being requested from the Plugin Installation API. |
$args | object | Plugin API arguments. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'plugins_api_result', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'plugins_api_result', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii