wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



print_embed_scripts › WordPress Function

Depuis4.4.0
Dépréciéen/a
› print_embed_scripts ( Pas de paramètres )
Défini(e) dans:
Codex:

Prints the JavaScript in the embed iframe header.



Source

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 ) )
	);
}