функция
since 4.4.0
print_embed_scripts()
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
print_embed_scripts()
Описание
Выводит JavaScript в заголовок iframe встраивания.
Исходный код
wp-includes/embed.php:1103
function print_embed_scripts() {
$js_path = '/js/wp-embed-template' . wp_scripts_get_suffix() . '.js';
wp_print_inline_script_tag(
trim( file_get_contents( ABSPATH . WPINC . $js_path ) ) . "\n//# sourceURL=" . esc_url_raw( includes_url( $js_path ) )
);
}
История изменений
| Версия | Описание |
|---|---|
| 4.4.0 | Introduced. |

