filtrod 2.9.0
pingback_useragent
Opis — z kodu źródłowego
Filters the user agent sent when pinging-back a URL.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$concat_useragent | string | The user agent concatenated with ' -- WordPress/' and the WordPress version. |
$useragent | string | The useragent. |
$pingback_server_url | string | The server URL being linked to. |
$pagelinkedto | string | URL of page linked to. |
$pagelinkedfrom | string | URL 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
}
// 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