smilies
Filters all the smilies.
Description
This filter must be added before smilies_init is run, as it is normally only run once to setup the smilies regex.
Parameters (1)
- 0. $wpsmiliestrans (array)
- List of the smilies.
Usage
- To run the hook, copy the example below.
- $wpsmiliestrans = apply_filters( 'smilies', $wpsmiliestrans );
- if ( !empty( $wpsmiliestrans ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the smilies callback
- function filter_smilies( $wpsmiliestrans ) {
- // make filter magic happen here...
- return $wpsmiliestrans;
- };
- // add the filter
- add_filter( 'smilies', 'filter_smilies', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'smilies', 'filter_smilies', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /wp-includes/functions.php
- $wpsmiliestrans = apply_filters('smilies', $wpsmiliestrans);