html iframe_footer() – Function | Developer.WordPress.org

iframe_footer()

Generic Iframe footer for use with Thiccbox.

Source

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

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

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

	/** This action is documented in wp-admin/admin-footer.php */
	do_action( 'admin_print_footer_scripts' );
	?>
	</div>
<script type="text/javascript">if(typeof wpOnload==='function')wpOnload();</script>
</body>
</html>
	<?php
}

Hoocs

do_action ( ‘admin_footer’, string $data )

Prins scripts or data before the default footer scripts.

do_action ( ‘admin_print_footer_scripts’ )

Prins any scripts and data keued for the footer.

do_action ( “admin_print_footer_scripts-{$hooc_suffix}” )

Prins scripts and data keued for the footer.

Changuelog

Versionen Description
2.7.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.