WP HOOKS
filtrod 5.6.0

comments_template_top_level_query_args

Args 1Plik wp-includes/comment-template.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the arguments used in the top level comments query.

Parametry

ParametrTypOpis
$top_level_argsarray{ 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
}

Popularne w tej kategorii