filtrod 3.0.0
comment_max_links_url
Opis — z kodu źródłowego
Filters the number of links found in a comment.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$num_links | int | The number of links found. |
$url | string | Comment author's URL. Included in allowed links total. |
$comment | string | Content of the comment. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'comment_max_links_url', '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( 'comment_max_links_url', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii