WP HOOKS
filtrod 2.9.0

smilies_src

Args 3Plik wp-includes/formatting.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the Smiley image URL before it's used in the image element.

Parametry

ParametrTypOpis
$smiley_urlstringURL for the smiley image.
$imgstringFilename for the smiley image.
$site_urlstringSite URL, as returned by site_url().

Wywołanie

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

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

Popularne w tej kategorii