filtrod 5.6.0
comments_template_top_level_query_args
Opis — z kodu źródłowego
Filters the arguments used in the top level comments query.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$top_level_args | array | { The top level query arguments for the comments template. @type bool $count Whether to return a comment count. @type string|array $orderby The field(s) to order by. @type int $post_id The post ID. @type string|array $status The comment status to limit results by. } |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'comments_template_top_level_query_args', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'comments_template_top_level_query_args', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii