W3cubDocs

/WordPress

apply_filters( ‘smilies_src’, string $smiley_url, string $img, string $site_url )

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

Parameters

$smiley_urlstring
URL for the smiley image.
$imgstring
Filename for the smiley image.
$site_urlstring
Site URL, as returned by site_url() .

Source

$src_url = apply_filters( 'smilies_src', includes_url( "images/smilies/$img" ), $img, site_url() );

Changelog

Version Description
2.9.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/smilies_src