filtrod 1.5.0
page_link
Opis — z kodu źródłowego
Filters the permalink for a page.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$link | string | The page's permalink. |
$post_id | int | The ID of the page. |
$sample | bool | Is it a sample permalink. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'page_link', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'page_link', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii