filtrod 2.7.0
plugins_api_args
Opis — z kodu źródłowego
Filters the WordPress.org Plugin Installation API arguments.
Important: An object MUST be returned to this filter.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$args | object | Plugin API arguments. |
$action | string | The type of information being requested from the Plugin Installation API. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'plugins_api_args', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'plugins_api_args', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii