smilies хук-фильтрWP 4.7.0

Filters all the smilies.

This filter must be added before smilies_init is run, as it is normally only run once to setup the smilies regex.

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

add_filter( 'smilies', 'wp_kama_smilies_filter' );

/**
 * Function for `smilies` filter-hook.
 * 
 * @param string[] $wpsmiliestrans List of the smilies' hexadecimal representations, keyed by their smily code.
 *
 * @return string[]
 */
function wp_kama_smilies_filter( $wpsmiliestrans ){

	// filter...
	return $wpsmiliestrans;
}
$wpsmiliestrans(string[])
List of the smilies' hexadecimal representations, keyed by their smily code.

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

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

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

smilies_init()
smilies
wp-includes/functions.php 4737
$wpsmiliestrans = apply_filters( 'smilies', $wpsmiliestrans );

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

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