WP HOOKS
filtrod 2.8.0

themes_api_args

Args 2Plik wp-admin/includes/theme.phpDokumentacja WP ↗

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

ParametrTypOpis
$argsobjectArguments used to query for installer pages from the WordPress.org Themes API.
$actionstringRequested 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
}

Popularne w tej kategorii