print_emoji_detection_script()
Prints the inline Emoji detection script if it is not already printed.
No Hooks.
Returns
null. Nothing (null).
Usage
print_emoji_detection_script();
Changelog
| Since 4.2.0 | Introduced. |
print_emoji_detection_script() print emoji detection script code WP 6.9.1
function print_emoji_detection_script() {
static $printed = false;
if ( $printed ) {
return;
}
$printed = true;
if ( did_action( 'wp_print_footer_scripts' ) ) {
_print_emoji_detection_script();
} else {
add_action( 'wp_print_footer_scripts', '_print_emoji_detection_script' );
}
}