smilies filter-hookWP 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.

Usage

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.

Changelog

Since 4.7.0 Introduced.

Where the hook is called

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

Where the hook is used in WordPress

Usage not found.