print_embed_scripts()
Prints the JavaScript in the embed iframe header.
Хуков нет.
Возвращает
null. Ничего (null).
Использование
print_embed_scripts();
Список изменений
| С версии 4.4.0 | Введена. |
Код print_embed_scripts() print embed scripts WP 7.0
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 ) )
);
}