WP HOOKS
filtrod 3.0.0

get_avatar_comment_types

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

Opis — z kodu źródłowego

Filters the list of allowed comment types for retrieving avatars.

Parametry

ParametrTypOpis
$typesarrayAn array of content types. Default contains 'comment' and 'note'.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'get_avatar_comment_types', 'twoja_funkcja' );

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

Popularne w tej kategorii