WP HOOKS
filtrod 3.1.0

show_recent_comments_widget_style

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

Opis — z kodu źródłowego

Filters the Recent Comments default widget styles.

Parametry

ParametrTypOpis
$activeboolWhether the widget is active. Default true.
$id_basestringThe widget ID.

Wywołanie

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

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

Popularne w tej kategorii