filtrod 2.5.0
get_pagenum_link
Opis — z kodu źródłowego
Filters the page number link for the current request.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$result | string | The page number link. |
$pagenum | int | The page number. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_pagenum_link', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_pagenum_link', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii