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();
}

Top ↑

Changelog

Changelog
VersionDescription
4.2.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