filtrod 1.5.0
the_permalink
Opis — z kodu źródłowego
Filters the display of the permalink for the current post.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$permalink | string | The permalink for the current post. |
$post | int | \WP_Post | Post ID, WP_Post object, or 0. Default 0. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'the_permalink', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'the_permalink', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii