filtrod 2.1.0
_get_page_link
Opis — z kodu źródłowego
Filters the permalink for a non-page_on_front page.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$link | string | The page's permalink. |
$post_id | int | The ID of the page. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( '_get_page_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_page_link', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii