WP HOOKS
filtrod 2.6.0

comments_per_page

Args 2Plik wp-admin/includes/class-wp-comments-list-table.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the number of comments listed per page in the comments list table.

Parametry

ParametrTypOpis
$comments_per_pageintThe number of comments to list per page.
$comment_statusstringThe comment status name. Default 'All'.

Wywołanie

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

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

Popularne w tej kategorii