функция
since 4.2.0
print_emoji_detection_script()
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
print_emoji_detection_script()
Описание
Выводит встроенный скрипт обнаружения эмодзи, если он ещё не выведен.
Исходный код
wp-includes/formatting.php:5901
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' );
}
}
История изменений
| Версия | Описание |
|---|---|
| 4.2.0 | Introduced. |

