WP HOOKS
filtrod 2.7.0

plugins_api_args

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

Opis — z kodu źródłowego

Filters the WordPress.org Plugin Installation API arguments.

Important: An object MUST be returned to this filter.

Parametry

ParametrTypOpis
$argsobjectPlugin API arguments.
$actionstringThe 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
}

Popularne w tej kategorii