WP HOOKS
filtrod 2.9.0

pingback_useragent

Args 5Plik wp-includes/comment.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the user agent sent when pinging-back a URL.

Parametry

ParametrTypOpis
$concat_useragentstringThe user agent concatenated with ' -- WordPress/' and the WordPress version.
$useragentstringThe useragent.
$pingback_server_urlstringThe server URL being linked to.
$pagelinkedtostringURL of page linked to.
$pagelinkedfromstringURL of page linked from.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'pingback_useragent', 'twoja_funkcja', 10, 5 );

function twoja_funkcja($param_1, $param_2, $param_3, $param_4, $param_5) {
	// Twój kod
}

Popularne w tej kategorii