filtrod 2.7.0
thread_comments_depth_max
Opis — z kodu źródłowego
Filters the maximum depth of threaded/nested comments.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$max_depth | int | The maximum depth of threaded comments. Default 10. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'thread_comments_depth_max', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'thread_comments_depth_max', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii