filtrod 2.3.0
the_tags
Opis — z kodu źródłowego
Filters the tags list for a given post.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$tag_list | string | List of tags. |
$before | string | String to use before the tags. |
$sep | string | String to use between the tags. |
$after | string | String to use after the tags. |
$post_id | int | Post ID. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'the_tags', '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( 'the_tags', 'twoja_funkcja', 10, 5 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4, $param_5) {
// Twój kod
}Popularne w tej kategorii