WP HOOKS
filtrod 2.6.0

avatar_defaults

Args 1Plik wp-admin/options-discussion.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the default avatars.

Avatars are stored in key/value pairs, where the key is option value, and the name is the displayed avatar name.

Parametry

ParametrTypOpis
$avatar_defaultsstring[]Associative array of default avatars.

Wywołanie

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

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

Popularne w tej kategorii