print_emoji_detection_script()
Prints the inline Emoji detection script if it is not already printed.
Хуков нет.
Возвращает
null. Ничего (null).
Использование
print_emoji_detection_script(): void;
Список изменений
| С версии 4.2.0 | Введена. |
Код print_emoji_detection_script() print emoji detection script WP 7.1.5
function print_emoji_detection_script(): void {
static $printed = false;
if ( $printed ) {
return;
}
$printed = true;
if ( is_admin() ) {
if ( did_action( 'admin_print_footer_scripts' ) ) {
_print_emoji_detection_script();
} else {
add_action( 'admin_print_footer_scripts', '_print_emoji_detection_script' );
}
} else {
if ( did_action( 'wp_print_footer_scripts' ) ) {
_print_emoji_detection_script();
} else {
add_action( 'wp_print_footer_scripts', '_print_emoji_detection_script' );
}
}
}