WP HOOKS
filtrod 2.7.0

plugins_api_result

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

Opis — z kodu źródłowego

Filters the Plugin Installation API response results.

Parametry

ParametrTypOpis
$resobject | \WP_ErrorResponse object or WP_Error.
$actionstringThe type of information being requested from the Plugin Installation API.
$argsobjectPlugin 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
}

Popularne w tej kategorii