print_emoji_detection_script() WordPress Function
This function will automatically detect whether an emoji script is needed on your WordPress site. If an emoji script is needed, it will be automatically included. This function should be placed in your WordPress site's header.
print_emoji_detection_script() #
Prints the inline Emoji detection script if it is not already printed.
Source
File: wp-includes/formatting.php
function print_emoji_detection_script() { static $printed = false; if ( $printed ) { return; } $printed = true; _print_emoji_detection_script(); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.2.0 | Introduced. |