smilies filter-hook . 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.
Usage
add_filter( 'smilies', 'filter_function_name_3386' ); function filter_function_name_3386( $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
wp-includes/functions.php 4394
$wpsmiliestrans = apply_filters( 'smilies', $wpsmiliestrans );