filtrod 2.8.0
themes_api_args
Opis — z kodu źródłowego
Filters arguments used to query for installer pages from the WordPress.org Themes API.
Important: An object MUST be returned to this filter.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$args | object | Arguments used to query for installer pages from the WordPress.org Themes API. |
$action | string | Requested action. Likely values are 'theme_information', 'feature_list', or 'query_themes'. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'themes_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( 'themes_api_args', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii