smilies_src хук-фильтр . WP 2.9.0
Filters the Smiley image URL before it's used in the image element.
Использование
add_filter( 'smilies_src', 'filter_function_name_1478', 10, 3 ); function filter_function_name_1478( $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 | Введена. |
Где вызывается хук
smilies_src
wp-includes/formatting.php 3336
$src_url = apply_filters( 'smilies_src', includes_url( "images/smilies/$img" ), $img, site_url() );