wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



iframe_footer › WordPress Function

Od2.7.0
Przestarzałyn/a
› iframe_footer ( Brak parametrów )
Zdefiniowane na:
Codex:

Generic Iframe footer for use with Thickbox.



Źródło

function iframe_footer() {
	/*
	 * We're going to hide any footer output on iFrame pages,
	 * but run the hooks anyway since they output JavaScript
	 * or other needed content.
	 */

	/**
	 * @global string $hook_suffix
	 */
	global $hook_suffix;
	?>
	<div class="hidden">
	<?php
	/** This action is documented in wp-admin/admin-footer.php */
	do_action( 'admin_footer', $hook_suffix );

	/** This action is documented in wp-admin/admin-footer.php */
	do_action( "admin_print_footer_scripts-{$hook_suffix}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores

	/** This action is documented in wp-admin/admin-footer.php */
	do_action( 'admin_print_footer_scripts' );
	?>
	</div>
	<?php
	wp_print_inline_script_tag(
		<<<'JS'
		if ( typeof wpOnload === 'function' ) {
			wpOnload();
		}
		JS
	);
	?>
</body>
</html>
	<?php
}