smilies_src хук-фильтрWP 2.9.0

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

Использование

add_filter( 'smilies_src', 'wp_kama_smilies_src_filter', 10, 3 );

/**
 * Function for `smilies_src` filter-hook.
 * 
 * @param string $smiley_url URL for the smiley image.
 * @param string $img        Filename for the smiley image.
 * @param string $site_url   Site URL, as returned by site_url().
 *
 * @return string
 */
function wp_kama_smilies_src_filter( $smiley_url, $img, $site_url ){

	// filter...
	return $smiley_url;
}
$smiley_url(строка)
URL for the smiley image.
$img(строка)
Filename for the smiley image.
$site_url(строка)
Site URL, as returned by site_url().

Список изменений

С версии 2.9.0 Введена.

Где вызывается хук

translate_smiley()
smilies_src
wp-includes/formatting.php 3483
$src_url = apply_filters( 'smilies_src', includes_url( "images/smilies/$img" ), $img, site_url() );

Где используется хук в WordPress

Использование не найдено.