smilies WordPress Filter Hook

The smilies Wordpress hook is a great way to add some personality to your blog posts and comments. Using this hook, you can add smilies (emoticons) to your blog posts and comments to add some fun and personality.

apply_filters( 'smilies', string[] $wpsmiliestrans ) #

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.


Top ↑

Parameters

$wpsmiliestrans

(string[])List of the smilies' hexadecimal representations, keyed by their smily code.


Top ↑

Source

File: wp-includes/functions.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More