smilies_src filter-hookWP 2.9.0

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

Usage

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(string)
URL for the smiley image.
$img(string)
Filename for the smiley image.
$site_url(string)
Site URL, as returned by site_url().

Changelog

Since 2.9.0 Introduced.

Where the hook is called

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

Where the hook is used in WordPress

Usage not found.