WP HOOKS
filtrod 3.4.0

widget_comments_args

Args 2Plik wp-includes/widgets/class-wp-widget-recent-comments.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the arguments for the Recent Comments widget.

Parametry

ParametrTypOpis
$comment_argsarrayAn array of arguments used to retrieve the recent comments.
$instancearrayArray of settings for the current widget.

Wywołanie

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

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

Popularne w tej kategorii