WP HOOKS
filtrod 4.4.0

found_comments_query

Args 2Plik wp-includes/class-wp-comment-query.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the query used to retrieve found comment count.

Parametry

ParametrTypOpis
$found_comments_querystringSQL query. Default 'SELECT FOUND_ROWS()'.
$comment_query\WP_Comment_QueryThe <code>WP_Comment_Query</code> instance.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'found_comments_query', 'twoja_funkcja', 10, 2 );

function twoja_funkcja($param_1, $param_2) {
	// Twój kod
}

Popularne w tej kategorii