print_embed_scripts

函数
print_embed_scripts ( No parameters )

print_embed_scripts: 这个动作用来打印从外部来源嵌入内容到WordPress所需的脚本。

打印嵌入iframe标题中的JavaScript。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function print_embed_scripts() {
wp_print_inline_script_tag(
file_get_contents( ABSPATH . WPINC . '/js/wp-embed-template' . wp_scripts_get_suffix() . '.js' )
);
}
function print_embed_scripts() { wp_print_inline_script_tag( file_get_contents( ABSPATH . WPINC . '/js/wp-embed-template' . wp_scripts_get_suffix() . '.js' ) ); }
function print_embed_scripts() {
	wp_print_inline_script_tag(
		file_get_contents( ABSPATH . WPINC . '/js/wp-embed-template' . wp_scripts_get_suffix() . '.js' )
	);
}

常见问题

FAQs
查看更多 >